Commit Graph

7 Commits (b8ac063da103a430e2bc9bf9eb2fa1fd1051a70c)

Author SHA1 Message Date
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 082828465c Added Program class - it is responsible for loading and compiling GLSL shaders into a GLSL program. Much to be changed in regards to its functionality, especially Variable/Texture-related access. Rendering to FBO and displaying via a framebuffer shader works. 2015-02-20 19:48:24 -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 30d4b87298 Updated ios and osx projects. Added some RenderCamera logic to RenderScene. Also added some basic code to main to test Render* functionality before the State machine is implemented. 2015-02-10 21:44:05 -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 710712f8c1 Moved GL.hpp to a common.hpp. common.hpp provides includes for SDL2 and OpenGL(ES) and should be included in any file that wishes to access types or functionality provided by either. 2015-02-10 01:09:39 -08:00
kts 47ca485855 Added RenderScene and RenderSet class skeletons. Also updated VS project. 2015-02-09 21:32:27 -08:00