Commit Graph

8 Commits

Author SHA1 Message Date
elipzer
56af508ef4 Bouncing works... Kindof...
Need to fix for bottom and left cases
2018-10-17 19:53:36 -04:00
elipzer
2f6c5ee319 Starting off with specified rendering.
Almost there. Just an odd linker error so far.
2018-10-13 15:26:22 -04:00
elipzer
a8abb4afc9 Added a Sprite class to render 2D things
The sprite inherits from Poseable. It is intended to allow for
pure 2D rendering or integration of sprites/particles into 3D
scenes. Eventually an ImageScene should be created to test out the
image loading, sprite movement and rotation, and 2D camera
functionality for the builtin engine.
2018-10-08 15:19:48 -04:00
elipzer
77e8b0de5e Added Namespace: charcoal 2018-09-12 17:03:46 -04:00
elipzer
1d19d370cb Removed vtable from Poseable
This removes the offset created by the vtable (8 bytes). This
means that pure Poseables are now tightly ;3 packed.
2018-09-10 21:21:19 -04:00
elipzer
2bdc165572 Quick fixed Poseable vtable issue with glVertexAttribPointer
Poseable is not a struct because it has a vtable. This means that
it cannot be used easily with glVertexAttribPointer.

This quick fix should be overwritten by a full fix that stores the
matrix data in a seperate vector and modifies the matrices with
poseable interfaces. (Will go into more detail in that commit.)
2018-09-10 20:42:50 -04:00
elipzer
f57c972be0 Working on Model-to-World Matrices
Currently, this feature breaks a bunch of stuff :(. Have to get
poseable to work with the objects.
2018-09-10 11:35:02 -04:00
elipzer
75357b330c Added Dependency: GLM
Now using GLM instead of the custom math libraries.
Sadly, this did not 100% fix the problem at hand but it does give
some closure that the math is not the problem.

Also it will be nice to have a general math library to not have to
deal with creating every math function every time.
2018-09-09 21:20:56 -04:00