Commit Graph

248 Commits (master)

Author SHA1 Message Date
Dorian Wouters e91e2bf2f9
CryptoData: use sodium_memzero, fix operator== 2016-10-06 21:31:46 +02:00
Dorian Wouters db9fd7b13e
ClientMessageHandler: upgrade PlayerJoin handling to MsgType 2016-10-06 21:28:01 +02:00
Dorian Wouters b1844d2c10
Texture: fix type conversion warning with getWrapGlConstant 2016-10-06 21:27:18 +02:00
Dorian Wouters d3df274432
Fix GLM arch options being all shown as enabled 2016-10-06 21:26:48 +02:00
Dorian Wouters aafb005e70
Implement the Tipsy face sorting optimization algorithm 2016-10-06 21:26:22 +02:00
Dorian Wouters d8ae204411
Fix crash when looking at a chunk containing an unknown block type 2016-10-06 21:22:55 +02:00
Dorian Wouters f33c796f07
gl/VBO: check for the proper DSA extension 2016-09-20 20:58:16 +02:00
Dorian Wouters b6cc028fd3
Update README dependencies lists 2016-09-20 00:20:16 +02:00
Dorian Wouters 8de7c3807a
Audio: code style fixes, show enumerated devices, remove static vars 2016-09-20 00:11:06 +02:00
Dorian Wouters af5b7085e6
LocalPlayer: move debug VAO&VBO out of staticness
Game now properly shuts down.
2016-09-20 00:10:06 +02:00
Dorian Wouters b42d238960
Remove old msgpack include 2016-09-20 00:09:30 +02:00
Dorian Wouters f3c6a30b5d
msgpack-c -> goodform; PlayerJoin+PlayerUpdate msgtypes 2016-09-19 23:26:59 +02:00
Dorian Wouters b9406ca2da
Replace ENet by Freeminer's fork, remove luajit submodule
Freeminer's ENet fork supports IPv6.
LuaJIT is already assumed to be provided by the system anyway.
2016-08-29 23:51:55 +02:00
Dorian Wouters 42ea79d259
Asset & Mod management base; PlayerUpdate->MsgTypes; add basic crypto
Fix rendering on compliant GL ES 2.0 implementations.
2016-08-28 10:51:39 +02:00
Dorian Wouters dd04f4a968
Move content registry, Object/BlockDef to Content namespace 2016-08-11 22:39:03 +02:00
Dorian Wouters 41a326a737
TexturePacker: log texture load failure reason 2016-08-06 22:31:50 +02:00
Dorian Wouters f2dd5300cc
Platform.hpp: move and chunk parts into src/platform/ 2016-08-06 22:28:25 +02:00
Dorian Wouters 28d5b18448
Introduce Lua scripting, basic block registration, tiled textures 2016-08-06 15:44:57 +02:00
Dorian Wouters f4620436d9
Shader: change "defines" to "prelude lines" 2016-07-11 23:04:50 +02:00
Dorian Wouters eec20c2150
gl: change VAO API; make WorldRenderer use VAOs 2016-07-11 19:14:19 +02:00
Dorian Wouters 56f25f00ca
gl/Util: add get(U)Integer() with return value 2016-07-11 19:13:47 +02:00
Dorian Wouters a5feef51b8
GameWindow: change UIManager lifetime, add GL debug callback 2016-07-11 19:13:04 +02:00
Dorian Wouters 0ede34c875
Make Chunks be rendered by WorldRenderer, implement GL one 2016-07-10 17:34:30 +02:00
Dorian Wouters 028cd54d73
ProgramManager: fix minor codestyle issue 2016-07-10 17:31:37 +02:00
Dorian Wouters 1c651fdb32
Game: proper destruction and lifetime 2016-07-10 17:29:01 +02:00
Dorian Wouters 4c8ec993c9
Frustum: default out constructor and destructor 2016-07-10 17:27:24 +02:00
Dorian Wouters 56ffea29e1
gl/VAO: add element array buffer binding 2016-07-10 17:27:03 +02:00
Dorian Wouters e1143dd66e
gl/VBO: use Direct State Access if available 2016-07-10 17:26:31 +02:00
Dorian Wouters 0e264526e7
GameState: add frame rendering time measurement (microseconds) 2016-07-07 13:57:41 +02:00
Dorian Wouters 57e78ddeb8
AABB: alias v1, v2 to min, max 2016-07-07 12:07:06 +02:00
Dorian Wouters db0acdd55b
GL FeatureSupport: add detection of ARB_direct_state_access 2016-07-07 12:06:50 +02:00
Dorian Wouters 91fe793140
Un-Java-ize Texture API 2016-07-07 12:06:21 +02:00
Dorian Wouters c686de3789
GL FeatureSupport: extend VAO detection to OES extension 2016-07-07 10:38:16 +02:00
Dorian Wouters 138fb7ed64
Add VAO class (emulates when no ARB_vertex_array_object)
Make GL ParticlesRenderer use VAOs
2016-07-07 01:37:38 +02:00
Dorian Wouters 42447043f7
Create ParticlesRenderer, implement its GL version
Create "Renderer" object containing pointers to backend-specific (C++
virtual) renderers.
Make VBO fully inline and lose its ability to do refcounting.
2016-07-06 22:04:56 +02:00
Dorian Wouters 292552bf18
Switch from FastHash to MurmurHash2 2016-07-04 19:40:01 +02:00
Dorian Wouters d154cca40e
PlayerList::getBy*: return pointer instead of reference 2016-07-04 19:25:03 +02:00
Dorian Wouters d40c1bf978
Chunk: remove data2 2016-07-04 12:12:29 +02:00
Dorian Wouters 162756a81d
Clean up CMakeLists a bit 2016-07-04 12:10:27 +02:00
Dorian Wouters 1708438e18
Remove Net::MsgType::Event, implement block placement 2016-07-03 22:12:49 +02:00
Dorian Wouters 0f65b13ca2
CMakeFile: detect missing bundled msgpack-c 2016-07-03 22:11:43 +02:00
Dorian Wouters 2868fa82df
get*Ex -> getLoad*, (re)implement networked block updates
Light data and extdata not yet handled.

Fixes some signedness inconsistencies in Chunk.{cpp,hpp}

Server now holds some chunks in memory.
2016-07-03 15:16:55 +02:00
Dorian Wouters 212896a18b
Chat MsgType: unpack MsgPack using zone 2016-07-03 12:58:22 +02:00
Dorian Wouters bf741790a0
GameState: move network handling to Net::ClientMessageHandler 2016-07-03 00:05:08 +02:00
Dorian Wouters 2b8a321dad
Extend BoundBufferSave to more buffers, fixes text not showing 2016-07-02 22:19:51 +02:00
Dorian Wouters ecc0031193
GameState: call abort() upon Shift+F12 2016-07-02 16:23:45 +02:00
Dorian Wouters bd478c197f
Fix sending empty OutMessages 2016-07-02 15:55:01 +02:00
Dorian Wouters d40c33ce33
Move FBO, VBO & GL utils to render/gl/ 2016-07-02 15:51:36 +02:00
Dorian Wouters 21a6b90c7e
Improve README: warn use of submodules, more Debian packages 2016-07-02 15:14:40 +02:00
Dorian Wouters 65b326ad55
GLFW/GameWindow: better (and earlier) error reporting 2016-07-02 14:54:48 +02:00