Macros | Functions | Variables
splitview.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 splitview.c:

Go to the source code of this file.

Macros

#define TORUS_MAJOR   1.5
 
#define TORUS_MAJOR_RES   32
 
#define TORUS_MINOR   0.5
 
#define TORUS_MINOR_RES   32
 

Functions

static void cursorPosFun (GLFWwindow *window, double x, double y)
 
static void drawAllViews (void)
 
static void drawGrid (float scale, int steps)
 
static void drawScene (void)
 
static void drawTorus (void)
 
static void framebufferSizeFun (GLFWwindow *window, int w, int h)
 
static void key_callback (GLFWwindow *window, int key, int scancode, int action, int mods)
 
int main (void)
 
static void mouseButtonFun (GLFWwindow *window, int button, int action, int mods)
 
static void windowRefreshFun (GLFWwindow *window)
 

Variables

static int active_view = 0
 
static int do_redraw = 1
 
static int height
 
static int rot_x = 0
 
static int rot_y = 0
 
static int rot_z = 0
 
static int width
 
static double xpos = 0
 
static double ypos = 0
 

Macro Definition Documentation

#define TORUS_MAJOR   1.5

Definition at line 53 of file splitview.c.

#define TORUS_MAJOR_RES   32

Definition at line 55 of file splitview.c.

#define TORUS_MINOR   0.5

Definition at line 54 of file splitview.c.

#define TORUS_MINOR_RES   32

Definition at line 56 of file splitview.c.

Function Documentation

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

Definition at line 407 of file splitview.c.

static void drawAllViews ( void  )
static

Definition at line 213 of file splitview.c.

static void drawGrid ( float  scale,
int  steps 
)
static

Definition at line 151 of file splitview.c.

static void drawScene ( void  )
static

Definition at line 119 of file splitview.c.

static void drawTorus ( void  )
static

Definition at line 58 of file splitview.c.

static void framebufferSizeFun ( GLFWwindow window,
int  w,
int  h 
)
static

Definition at line 383 of file splitview.c.

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

Definition at line 473 of file splitview.c.

int main ( void  )

Definition at line 484 of file splitview.c.

static void mouseButtonFun ( GLFWwindow window,
int  button,
int  action,
int  mods 
)
static

Definition at line 453 of file splitview.c.

static void windowRefreshFun ( GLFWwindow window)
static

Definition at line 395 of file splitview.c.

Variable Documentation

int active_view = 0
static

Definition at line 40 of file splitview.c.

int do_redraw = 1
static

Definition at line 46 of file splitview.c.

int height
static

Definition at line 36 of file splitview.c.

int rot_x = 0
static

Definition at line 43 of file splitview.c.

int rot_y = 0
static

Definition at line 43 of file splitview.c.

int rot_z = 0
static

Definition at line 43 of file splitview.c.

int width
static

Definition at line 36 of file splitview.c.

double xpos = 0
static

Definition at line 33 of file splitview.c.

double ypos = 0
static

Definition at line 33 of file splitview.c.



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