Commit Graph

17 Commits (1318be4fc0675df9cc887113d5b0e7a3cde96698)

Author SHA1 Message Date
kts 1318be4fc0 SDL_ttf now required. Added basic Font class and default TTF font (Amaranth). 2015-03-06 05:53:09 -08:00
kts 482db6b6f1 Updated VS project, works ok. 2015-03-05 20:04:44 -08:00
kts 12b2eed290 Updated VS project - works fine, but probably does not copy over all the needed DLLs during build (zlib, etc.). 2015-03-04 01:12:49 -08:00
kts 12020b1da4 Updated VS 2015-03-03 03:29:09 -08:00
kts 268cbb5a1f Update VS project - works fine as well. 2015-03-02 20:13:43 -08:00
kts ba6d8e21c8 Updated VS project for States and set header includes for src/ and src/states. 2015-03-02 01:54:08 -08:00
kts bc831f05b0 AssetManager/AssetCache system now mostly in place. AssetCache(s) create/read from a .CACHE file in the target directory. This file is human-readable and is the index for the cache. Each line contains the file's path, its checksum, and the filesize. This file is updated when the filesize of the file changes. Currently new files are found and added on start - to be added is a refresh function. Also to be added is an update via modification time - this will require a new entry in the cache index file. A single-line version heading should also be added.
Data files are now loaded from the Cache - Mesh and Program build from passed buffers now. These are generally read from a loaded Asset. Next up: updating it to work on Linux, Android, iOS, and OS X.

Also added a somewhat poor HashTable template implementation. Works okay, but might not be the best.
2015-03-01 02:17:12 -08:00
kts 7cc5ad8df4 Added the AssetCache class skeleton. 2015-02-28 03:08:47 -08:00
kts 561c33f092 Updated VS project. Added a _WIN32 ifdef and typedefs for uint32_t and uint8_t due to Windows not including inttypes.h. 2015-02-24 17:18:40 -08:00
kts adcf6cd1b5 Added test chest model and basic model rendering shader. Mesh now builds normals buffer along with uv and vp. Added Quaternion class, currently used for RenderObject's rotation matrix generation - needs to be added to RenderCamera. RenderScene now accomplishes what its name implies - the rendering of a scene. Some logic needs to be moved into Program from RenderScene's doRender function. 2015-02-23 02:49:52 -08:00
kts b7e867fbf2 Updates VS project. Replaced snprintf with std::ostringstream in Program::attachTexture. Added RenderCamera functionality for orientation and position. Much more to be added, but likely need to implement the State machine so majority of the program logic is complete. 2015-02-21 05:53:40 -08:00
kts 9ab5b42752 Added common checks for GLEW on Windows, need to fix and add other systems. Added LOG_INFO to logging, ERROR logs show SDL message box, and pointing logHook to a function taking 2 const char* params will call said function on log. Added Mesh type that can load an OBJ mesh and build OpenGL vbo/vao. Can also build from passed vertices, uv, and normal arrays. RenderCamera updated. RenderObject updated with Mesh member. RenderScene updated with basic rendering system set (renderTo(RenderView*)). RenderView now creates framebuffers and should be working. RenderView also relies on a Mesh that should generally be a quad, but is not necessarily (it uses a Mesh). 2015-02-12 05:48:10 -08:00
kts f7acf3c219 Added a basic Logging system. Currently calls SDL_ShowSimpleMessageBox(...). 2015-02-11 01:58:43 -08:00
kts 1fa87fb90f Imported Mat4 class from CC. 2015-02-10 05:34:58 -08:00
kts 66eb0364b3 Updated VS and added Vec2/Vec3/Vec3 classes from CC project. Also added RenderObject skeleton. 2015-02-10 04:50:31 -08:00
kts 47ca485855 Added RenderScene and RenderSet class skeletons. Also updated VS project. 2015-02-09 21:32:27 -08:00
kts b81a275456 Added working Visual Studio Express 2012 project file. 2015-02-04 16:28:22 -08:00