31 lines
414 B
C++
Executable File
31 lines
414 B
C++
Executable File
#pragma once
|
|
|
|
#include "VE.hpp"
|
|
|
|
namespace sandbox
|
|
{
|
|
|
|
class cube : public VE::opengl
|
|
{
|
|
public:
|
|
cube();
|
|
~cube() = default;
|
|
|
|
public:
|
|
void set_scale(float val);
|
|
void set_position(glm::vec3 val);
|
|
void set_color(glm::vec4 val);
|
|
void use();
|
|
void render();
|
|
};
|
|
|
|
class opengl_panel : public VE::layer
|
|
{
|
|
VE_FN_OVERIDE();
|
|
|
|
cube cb_1;
|
|
cube cb_2;
|
|
};
|
|
}
|
|
|