Functions | Variables
reopen.c File Reference
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include "linmath.h"
Include dependency graph for reopen.c:

Go to the source code of this file.


static void close_window (GLFWwindow *window)
static void error_callback (int error, const char *description)
static void key_callback (GLFWwindow *window, int key, int scancode, int action, int mods)
int main (int argc, char **argv)
static void window_close_callback (GLFWwindow *window)


static const char * fragment_shader_text
static const char * vertex_shader_text
static const vec2 vertices [4]

Function Documentation

static void close_window ( GLFWwindow window)

Definition at line 93 of file reopen.c.

static void error_callback ( int  error,
const char *  description 

Definition at line 69 of file reopen.c.

static void key_callback ( GLFWwindow window,
int  key,
int  scancode,
int  action,
int  mods 

Definition at line 79 of file reopen.c.

int main ( int  argc,
char **  argv 

Definition at line 100 of file reopen.c.

static void window_close_callback ( GLFWwindow window)

Definition at line 74 of file reopen.c.

Variable Documentation

const char* fragment_shader_text
Initial value:
"#version 110\n"
"void main()\n"
" gl_FragColor = vec4(1.0);\n"

Definition at line 54 of file reopen.c.

const char* vertex_shader_text
Initial value:
"#version 110\n"
"uniform mat4 MVP;\n"
"attribute vec2 vPos;\n"
"void main()\n"
" gl_Position = MVP * vec4(vPos, 0.0, 1.0);\n"

Definition at line 45 of file reopen.c.

const vec2 vertices[4]
Initial value:
{ -0.5f, -0.5f },
{ 0.5f, -0.5f },
{ 0.5f, 0.5f },
{ -0.5f, 0.5f }

Definition at line 61 of file reopen.c.

Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:28