mirror of
https://github.com/guezoloic/LearnOpenGL.git
synced 2026-01-25 07:34:16 +00:00
feat: add a few improvements of cube logic
This commit is contained in:
@@ -25,7 +25,10 @@ class Shape
|
||||
Texture texture;
|
||||
|
||||
public:
|
||||
Shape(Camera &camera, glm::vec3 pos, Shader shader, Texture texture);
|
||||
Shape(Camera &camera, glm::vec3 pos, Shader shader, Texture texture)
|
||||
: camera(camera), pos(pos), shader(shader), texture(texture)
|
||||
{
|
||||
}
|
||||
|
||||
virtual void render(int width, int height) = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user