#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
Go to the source code of this file.
|
static void | animate (void) |
|
static void | draw (void) |
|
static void | gear (GLfloat inner_radius, GLfloat outer_radius, GLfloat width, GLint teeth, GLfloat tooth_depth) |
|
static void | init (void) |
|
void | key (GLFWwindow *window, int k, int s, int action, int mods) |
|
int | main (int argc, char *argv[]) |
|
void | reshape (GLFWwindow *window, int width, int height) |
|
Draw a gear wheel. You'll probably want to call this function when building a display list since we do a lot of trig here.
Input: inner_radius - radius of hole at center outer_radius - radius at center of teeth width - width of gear teeth - number of teeth tooth_depth - depth of tooth
Definition at line 50 of file gears.c.
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |