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

Go to the source code of this file.

Classes

struct  Vertex
 

Macros

#define ANIMATION_SPEED   10.0
 
#define GRIDH   50
 
#define GRIDW   50
 
#define MAX_DELTA_T   0.01
 
#define QUADH   (GRIDH - 1)
 
#define QUADNUM   (QUADW*QUADH)
 
#define QUADW   (GRIDW - 1)
 
#define VERTEXNUM   (GRIDW*GRIDH)
 

Functions

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)
 

Variables

GLfloat alpha = 210.f
 
double ax [GRIDW][GRIDH]
 
double ay [GRIDW][GRIDH]
 
GLfloat beta = -70.f
 
double cursorX
 
double cursorY
 
double dt
 
double p [GRIDW][GRIDH]
 
GLuint quad [4 *QUADNUM]
 
struct Vertex vertex [VERTEXNUM]
 
double vx [GRIDW][GRIDH]
 
double vy [GRIDW][GRIDH]
 
GLfloat zoom = 2.f
 

Macro Definition Documentation

#define ANIMATION_SPEED   10.0

Definition at line 29 of file wave.c.

#define GRIDH   50

Definition at line 44 of file wave.c.

#define GRIDW   50

Definition at line 43 of file wave.c.

#define MAX_DELTA_T   0.01

Definition at line 26 of file wave.c.

#define QUADH   (GRIDH - 1)

Definition at line 48 of file wave.c.

#define QUADNUM   (QUADW*QUADH)

Definition at line 49 of file wave.c.

#define QUADW   (GRIDW - 1)

Definition at line 47 of file wave.c.

#define VERTEXNUM   (GRIDW*GRIDH)

Definition at line 45 of file wave.c.

Function Documentation

void adjust_grid ( void  )

Definition at line 197 of file wave.c.

void calc_grid ( void  )

Definition at line 217 of file wave.c.

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

Definition at line 336 of file wave.c.

void draw_scene ( GLFWwindow window)

Definition at line 148 of file wave.c.

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

Definition at line 264 of file wave.c.

void framebuffer_size_callback ( GLFWwindow window,
int  width,
int  height 
)

Definition at line 365 of file wave.c.

void init_grid ( void  )

Definition at line 117 of file wave.c.

void init_opengl ( void  )

Definition at line 173 of file wave.c.

void init_vertices ( void  )

Definition at line 69 of file wave.c.

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

Definition at line 274 of file wave.c.

int main ( int  argc,
char *  argv[] 
)

Definition at line 390 of file wave.c.

void mouse_button_callback ( GLFWwindow window,
int  button,
int  action,
int  mods 
)

Definition at line 317 of file wave.c.

void scroll_callback ( GLFWwindow window,
double  x,
double  y 
)

Definition at line 353 of file wave.c.

Variable Documentation

GLfloat alpha = 210.f

Definition at line 31 of file wave.c.

double ax[GRIDW][GRIDH]

Definition at line 111 of file wave.c.

double ay[GRIDW][GRIDH]

Definition at line 111 of file wave.c.

GLfloat beta = -70.f

Definition at line 31 of file wave.c.

double cursorX

Definition at line 34 of file wave.c.

double cursorY

Definition at line 35 of file wave.c.

double dt

Definition at line 108 of file wave.c.

double p[GRIDW][GRIDH]

Definition at line 109 of file wave.c.

GLuint quad[4 *QUADNUM]

Definition at line 51 of file wave.c.

struct Vertex vertex[VERTEXNUM]

Definition at line 52 of file wave.c.

double vx[GRIDW][GRIDH]

Definition at line 110 of file wave.c.

double vy[GRIDW][GRIDH]

Definition at line 110 of file wave.c.

GLfloat zoom = 2.f

Definition at line 32 of file wave.c.



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