1 #pragma once 2 3 #include "snoutlib/shader.h" 4 #include "snoutlib/staticmesh.h" 5 #include "snoutlib/mfont.h" 6 7 struct Resources 8 { 9 Shader *shader_seawaves; 10 Shader *shader_clouds; 11 Shader *shader_particles; 12 Shader *shader_font; 13 Shader *shader_staticmesh; 14 Shader *shader_line; 15 16 StaticMesh *mesh_tanker; 17 StaticMesh *mesh_pboat; 18 StaticMesh *mesh_torpedo; 19 StaticMesh *mesh_missile; 20 StaticMesh *mesh_opengl_logo; 21 22 GLuint texture_smoke; 23 GLuint texture_bubble; 24 GLuint texture_circle; 25 GLuint texture_crosshair; 26 GLuint texture_missile_mark; 27 GLuint texture_seawaves; 28 GLuint texture_seawaves_f; 29 GLuint texture_line; 30 GLuint texture_cross; 31 32 MFont *font; 33 34 void load(void); 35 void release(void); 36 37 // all sizes will be downsized 2x for in-game textures (this sizes are used for supersampling during pre-comp) 38 static const int texture_font_size = 2048; 39 static const int texture_clouds_size = 2048; 40 static const int texture_mesh_size = 2048; 41 42 static const int texture_particle_size = 512; 43 }; 44 45 extern Resources g_resources; 46