mirror of
https://github.com/guezoloic/LearnOpenGL.git
synced 2026-01-25 09:34:16 +00:00
feat(cube): add cube function
This commit is contained in:
27
inc/cube.hpp
Normal file
27
inc/cube.hpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef CUBE_HPP
|
||||
#define CUBE_HPP
|
||||
|
||||
#include "vbo.hpp"
|
||||
#include "ebo.hpp"
|
||||
#include "vao.hpp"
|
||||
#include "shader.hpp"
|
||||
#include "texture.hpp"
|
||||
#include "camera.hpp"
|
||||
|
||||
class Cube
|
||||
{
|
||||
private:
|
||||
VBO vbo;
|
||||
EBO ebo;
|
||||
VAO vao;
|
||||
|
||||
Camera &camera;
|
||||
Shader shader;
|
||||
Texture texture;
|
||||
|
||||
public:
|
||||
Cube(Camera &camera);
|
||||
void loop(int width, int height);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user