| 920 | } |
| 921 | |
| 922 | void TextAtlasRenderer::Init() { |
| 923 | CHECK_GL_ERROR(); |
| 924 | num_characters = 0; |
| 925 | |
| 926 | CHECK_GL_ERROR(); |
| 927 | Shaders* shaders = Shaders::Instance(); |
| 928 | shader_id = shaders->returnProgram("simple_2d #TEXTURE"); |
| 929 | shaders->createProgram(shader_id); |
| 930 | shader_attrib_vert_coord = shaders->returnShaderAttrib("vert_coord", shader_id); |
| 931 | shader_attrib_tex_coord = shaders->returnShaderAttrib("tex_coord", shader_id); |
| 932 | uniform_mvp_mat = shaders->returnShaderVariable("mvp_mat", shader_id); |
| 933 | uniform_color = shaders->returnShaderVariable("color", shader_id); |
| 934 | } |
| 935 | |
| 936 | void TextAtlasRenderer::Dispose() { |
| 937 | index_vbo.Dispose(); |