moved textures into subfolder
8
main.c
|
@ -1495,7 +1495,7 @@ int main(int argc, char **argv) {
|
|||
glBindTexture(GL_TEXTURE_2D, texture);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
|
||||
load_png_texture("texture.png");
|
||||
load_png_texture("textures/texture.png");
|
||||
|
||||
GLuint font;
|
||||
glGenTextures(1, &font);
|
||||
|
@ -1503,7 +1503,7 @@ int main(int argc, char **argv) {
|
|||
glBindTexture(GL_TEXTURE_2D, font);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
|
||||
load_png_texture("font.png");
|
||||
load_png_texture("textures/font.png");
|
||||
|
||||
GLuint sky;
|
||||
glGenTextures(1, &sky);
|
||||
|
@ -1513,7 +1513,7 @@ int main(int argc, char **argv) {
|
|||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
|
||||
load_png_texture("sky.png");
|
||||
load_png_texture("textures/sky.png");
|
||||
|
||||
GLuint sign;
|
||||
glGenTextures(1, &sign);
|
||||
|
@ -1521,7 +1521,7 @@ int main(int argc, char **argv) {
|
|||
glBindTexture(GL_TEXTURE_2D, sign);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
|
||||
load_png_texture("sign.png");
|
||||
load_png_texture("textures/sign.png");
|
||||
|
||||
Attrib block_attrib = {0};
|
||||
Attrib line_attrib = {0};
|
||||
|
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 77 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |