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

Go to the source code of this file.

Macros

#define CURSOR_FRAME_COUNT   60
 

Functions

static GLFWcursorcreate_cursor_frame (float t)
 
static void cursor_position_callback (GLFWwindow *window, double x, double y)
 
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 (void)
 
static float star (int x, int y, float t)
 

Variables

static int animate_cursor = GLFW_FALSE
 
static double cursor_x
 
static double cursor_y
 
static const char * fragment_shader_text
 
static GLFWcursorstandard_cursors [6]
 
static int swap_interval = 1
 
static int track_cursor = GLFW_FALSE
 
static const char * vertex_shader_text
 
static int wait_events = GLFW_TRUE
 

Macro Definition Documentation

#define CURSOR_FRAME_COUNT   60

Definition at line 47 of file cursor.c.

Function Documentation

static GLFWcursor* create_cursor_frame ( float  t)
static

Definition at line 94 of file cursor.c.

static void cursor_position_callback ( GLFWwindow window,
double  x,
double  y 
)
static

Definition at line 114 of file cursor.c.

static void error_callback ( int  error,
const char *  description 
)
static

Definition at line 73 of file cursor.c.

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

Definition at line 124 of file cursor.c.

int main ( void  )

Definition at line 211 of file cursor.c.

static float star ( int  x,
int  y,
float  t 
)
static

Definition at line 78 of file cursor.c.

Variable Documentation

int animate_cursor = GLFW_FALSE
static

Definition at line 69 of file cursor.c.

double cursor_x
static

Definition at line 65 of file cursor.c.

double cursor_y
static

Definition at line 66 of file cursor.c.

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.

GLFWcursor* standard_cursors[6]
static

Definition at line 71 of file cursor.c.

int swap_interval = 1
static

Definition at line 67 of file cursor.c.

int track_cursor = GLFW_FALSE
static

Definition at line 70 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.

int wait_events = GLFW_TRUE
static

Definition at line 68 of file cursor.c.



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