-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshoot_lib.h
More file actions
33 lines (23 loc) · 931 Bytes
/
shoot_lib.h
File metadata and controls
33 lines (23 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef SHOOT_LIB
#define SHOOT_LIB
#include "shader_lib.hpp"
#include <cmath>
#include <cstdlib>
#include <glad/glad.h>
#include <iostream>
#include <GLFW/glfw3.h>
#include <stdio.h>
void framebuffer_size_callback(GLFWwindow *window, int width, int height);
void processInput(GLFWwindow *window);
void makeShaderProgram(unsigned int *shaderProgram,
const char *vertexShaderSource,
const char *fragmentShaderSource);
void makeVAO(unsigned int *VAO, unsigned int *VBO, unsigned int *EBO,
float *points, int pointsSize, unsigned int *indices,
int indicesSize, bool useEBO);
void renderSteps(Shader *shaderProgram, unsigned int *VAO, int count,
bool useEBO);
void mouse_callback(GLFWwindow *window, double xpos, double ypos);
void scroll_callback(GLFWwindow *window, double xpos, double ypos);
void vertexShader(float *points);
#endif