jmurrayufo / Gaia-Forge

An experiment into programming in SDL, OpenGL and making a 2D mining RPG.
3 stars 0 forks source link

Entities Store Texture #5

Open jmurrayufo opened 12 years ago

jmurrayufo commented 12 years ago

Entities should store the openGL texture that is associated with them.

Copies should NOT store extra copies of the image!

Maybe we need a texture class to keep track of which files have been loaded into memory? That or each creature will need a global pointer to a texture.

jmurrayufo commented 12 years ago

Solved solution somewhat Entities store a copy of a texture, but they ALL have a copy....

jmurrayufo commented 12 years ago

CTexture class is coming along very nicely. Need to finish it up, get it to initialize textures, and then get CEntities to talk to it.