• entries
15
6
• views
15699

# Hackman Day 2

935 views

Ok so I had no time yesterday so i done some more today I have it loading and displaying now. Next up will be to get some movement and collision detection hopefully I will get some time tomorrow for that. I had a problem to begin with that nothing was being displayed. The problem was quite a simple one I had wrotestd::size_t offset(sizeof(float) * 2 * 6 * where);glVertexAttribPointer(1, 2, GL_FLOAT, GL_FALSE, 0, (GLvoid*)offset);
instead ofstd::size_t offset(sizeof(float) * 2 * 4 * where);
Then my biggest problem came with actually getting Geoff to display properly he was displaying as the full texture instead of just a corner of it and spent ages messing about with it! It turned when I added an extra variable to my character class I wrote it different in the constructor definition to the prototype all because I done them backwards! After adjusting that it worked fine. I really need to do some new graphics but that can wait!

Two days down. Three to go hopefully.

There are no comments to display.

## Create an account

Register a new account