projects
/
fishladder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a665a51
)
create info buffer
author
hgn
<hgodden00@gmail.com>
Wed, 3 Nov 2021 18:13:46 +0000
(18:13 +0000)
committer
hgn
<hgodden00@gmail.com>
Wed, 3 Nov 2021 18:13:46 +0000
(18:13 +0000)
fishladder.c
patch
|
blob
|
history
diff --git
a/fishladder.c
b/fishladder.c
index 7c243bb2a6adccf282b94cf12f513c738d4b0c4d..1bc0d5cf02591af208d25bb2cb997cadba0fc6ff 100644
(file)
--- a/
fishladder.c
+++ b/
fishladder.c
@@
-190,6
+190,8
@@
struct world
struct mesh tile, circle;
struct mesh tile, circle;
+ GLuint background_data;
+
int selected, tile_x, tile_y;
v2f tile_pos;
int selected, tile_x, tile_y;
v2f tile_pos;
@@
-403,6
+405,12
@@
void vg_start(void)
init_mesh( &world.circle, circle_mesh, vg_list_size( circle_mesh ) );
}
init_mesh( &world.circle, circle_mesh, vg_list_size( circle_mesh ) );
}
+ // Create info data texture
+ glGenTextures( &world.background_data );
+ glBindTexture( GL_TEXTURE_2D, texture_name );
+ glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA, 64, 64, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL );
+ vg_tex2d_nearest();
+
resource_load_main();
map_load( level_pack[ 0 ] );
resource_load_main();
map_load( level_pack[ 0 ] );