#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "linmath.h"
Go to the source code of this file.
#define CURSOR_FRAME_COUNT 60 |
static void cursor_position_callback |
( |
GLFWwindow * |
window, |
|
|
double |
x, |
|
|
double |
y |
|
) |
| |
|
static |
static void error_callback |
( |
int |
error, |
|
|
const char * |
description |
|
) |
| |
|
static |
static void key_callback |
( |
GLFWwindow * |
window, |
|
|
int |
key, |
|
|
int |
scancode, |
|
|
int |
action, |
|
|
int |
mods |
|
) |
| |
|
static |
static float star |
( |
int |
x, |
|
|
int |
y, |
|
|
float |
t |
|
) |
| |
|
static |
const char* fragment_shader_text |
|
static |
Initial value:=
"#version 110\n"
"void main()\n"
"{\n"
" gl_FragColor = vec4(1.0);\n"
"}\n"
Definition at line 58 of file cursor.c.
const char* vertex_shader_text |
|
static |
Initial value:=
"#version 110\n"
"uniform mat4 MVP;\n"
"attribute vec2 vPos;\n"
"void main()\n"
"{\n"
" gl_Position = MVP * vec4(vPos, 0.0, 1.0);\n"
"}\n"
Definition at line 49 of file cursor.c.