aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/main.cpp b/main.cpp
index a04cd01..979a0bb 100644
--- a/main.cpp
+++ b/main.cpp
@@ -305,19 +305,18 @@ int main(int argc, char *argv[]){
/*
* TODO - Initialize shaders n' stuff
*/
-
- /*
+ /*
GLuint fragShader;
- GLuint shaderProgram;
+ GLuint shaderProgram;6da
const GLchar *shaderSource = "shader.frag";
GLint bufferln = GL_FALSE;
shaderProgram = glCreateProgram();
fragShader = glCreateShader(GL_FRAGMENT_SHADER);
-
- glShaderSource(fragShader, 1, &shaderSource, NULL);
+
+ glShaderSource(fragShader, 1, shaderSource, NULL);
glCompileShader(fragShader);
glGetShaderiv(fragShader, GL_COMPILE_STATUS, &bufferln);
@@ -328,11 +327,9 @@ int main(int argc, char *argv[]){
glAttachShader(shaderProgram, fragShader);
glLinkProgram(shaderProgram);
glValidateProgram(shaderProgram);
-
+ */
//glEnable(GL_DEPTH_TEST);
//glEnable(GL_MULTISAMPLE);
-
- */
/*
* Open the names file containing potential names for NPCs and store it in the names file
@@ -583,7 +580,7 @@ void render(){
ui::putText(player->loc.x-SCREEN_WIDTH/2,
SCREEN_HEIGHT-ui::fontSize,
- "FPS: %d\nG:%d\nRes: %ux%u\nE: %d\nPOS: (x)%+.2f\n (y)%+.2f\nQc: %u",
+ "FPS: %d\nG:%d\nRes: %ux%u\nE: %d\nPOS: (x)%+.2f\n (y)%+.2f\nQc: %u\nTS:%d\n",
fps,
player->ground,
SCREEN_WIDTH, // Window dimensions
@@ -591,7 +588,8 @@ void render(){
entity.size(), // Size of entity array
player->loc.x, // The player's x coordinate
debugY, // The player's y coordinate
- player->qh.current.size() // Active quest count
+ player->qh.current.size(), // Active quest count
+ player->tex->texState
);
}