#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <linmath.h>
Go to the source code of this file.
|
| void | adjust_grid (void) |
| |
| void | calc_grid (void) |
| |
| void | cursor_position_callback (GLFWwindow *window, double x, double y) |
| |
| void | draw_scene (GLFWwindow *window) |
| |
| static void | error_callback (int error, const char *description) |
| |
| void | framebuffer_size_callback (GLFWwindow *window, int width, int height) |
| |
| void | init_grid (void) |
| |
| void | init_opengl (void) |
| |
| void | init_vertices (void) |
| |
| void | key_callback (GLFWwindow *window, int key, int scancode, int action, int mods) |
| |
| int | main (int argc, char *argv[]) |
| |
| void | mouse_button_callback (GLFWwindow *window, int button, int action, int mods) |
| |
| void | scroll_callback (GLFWwindow *window, double x, double y) |
| |
| #define ANIMATION_SPEED 10.0 |
| #define QUADH (GRIDH - 1) |
| #define QUADW (GRIDW - 1) |
| void cursor_position_callback |
( |
GLFWwindow * |
window, |
|
|
double |
x, |
|
|
double |
y |
|
) |
| |
| static void error_callback |
( |
int |
error, |
|
|
const char * |
description |
|
) |
| |
|
static |
| void framebuffer_size_callback |
( |
GLFWwindow * |
window, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
| void key_callback |
( |
GLFWwindow * |
window, |
|
|
int |
key, |
|
|
int |
scancode, |
|
|
int |
action, |
|
|
int |
mods |
|
) |
| |
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
| void mouse_button_callback |
( |
GLFWwindow * |
window, |
|
|
int |
button, |
|
|
int |
action, |
|
|
int |
mods |
|
) |
| |