diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2015-10-04 19:39:08 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2015-10-04 19:39:08 -0400 |
commit | e58c8920f5332678e4446a8c33bc74a716024010 (patch) | |
tree | 7cc26dfbf5c7999047a39659794eafcd00769d3d /src/main.cpp | |
parent | 63dc9b399db9faef611c31629e0265b954d74197 (diff) | |
parent | a277430f0ddde9ea2583f4b0c44fcafe8a2528bf (diff) |
Added texture support and basic textures
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index f4e3943..9b16085 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -163,6 +163,9 @@ void render(){ glColor3ub(0,0,0); player->near=true; player->draw(); // Draw the player + player->inv->draw(); + + ui::draw(); // Draw any UI elements if they need to be if(ui::debug){ static unsigned int debugDiv=0; @@ -180,8 +183,6 @@ void render(){ fps,d,player->ground,SCREEN_WIDTH,SCREEN_HEIGHT,entity.size(),player->loc.x,rndy,player->qh.current.size()); } - ui::draw(); // Draw any UI elements if they need to be - for(int i=0;i<=entity.size();i++){ //entity[i]->draw(); entity[i]->loc.x += entity[i]->vel.x * deltaTime; |