rename var

This commit is contained in:
Mylloon 2023-05-03 21:12:13 +02:00
parent c813bf3167
commit c679e2bf9a
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -1,7 +1,7 @@
#include "../includes/animations.h" #include "../includes/animations.h"
static GLuint _pId = 0; static GLuint _pId = 0;
static GLuint _textTexId = 0; static GLuint _texId = 0;
static GLuint _quadId = 0; static GLuint _quadId = 0;
static void init(void); static void init(void);
@ -40,7 +40,7 @@ static void init(void) {
} }
// Ecrit avec la police sur une texture // Ecrit avec la police sur une texture
if (writeText(&_textTexId, font, if (writeText(&_texId, font,
" CRÉDITS\n\n" " CRÉDITS\n\n"
"Concours API8 — 7e édition\n" "Concours API8 — 7e édition\n"
"Font: fontesk et fontsquirrel\n" "Font: fontesk et fontsquirrel\n"
@ -75,7 +75,7 @@ static void draw(void) {
gl4duTranslatef(0.f, d - 1.5f, -2.f); gl4duTranslatef(0.f, d - 1.5f, -2.f);
glActiveTexture(GL_TEXTURE0); glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, _textTexId); glBindTexture(GL_TEXTURE_2D, _texId);
gl4duScalef(1.f, .3f, 1.f); gl4duScalef(1.f, .3f, 1.f);
glUseProgram(_pId); glUseProgram(_pId);