#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.
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 |
#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.
|
static |
Definition at line 407 of file splitview.c.
Definition at line 213 of file splitview.c.
|
static |
Definition at line 151 of file splitview.c.
Definition at line 119 of file splitview.c.
Definition at line 58 of file splitview.c.
|
static |
Definition at line 383 of file splitview.c.
|
static |
Definition at line 473 of file splitview.c.
int main | ( | void | ) |
Definition at line 484 of file splitview.c.
|
static |
Definition at line 453 of file splitview.c.
|
static |
Definition at line 395 of file splitview.c.
|
static |
Definition at line 40 of file splitview.c.
|
static |
Definition at line 46 of file splitview.c.
|
static |
Definition at line 36 of file splitview.c.
|
static |
Definition at line 43 of file splitview.c.
|
static |
Definition at line 43 of file splitview.c.
|
static |
Definition at line 43 of file splitview.c.
|
static |
Definition at line 36 of file splitview.c.
|
static |
Definition at line 33 of file splitview.c.
|
static |
Definition at line 33 of file splitview.c.