Heavy buffer update, window update, object tracking
This commit is contained in:
@@ -4,8 +4,9 @@
|
||||
|
||||
#include <NBCore/Errors.hpp>
|
||||
#include <NBGraphics/Image.hpp>
|
||||
#include <NBGraphics/Mesh.hpp>
|
||||
#include <NBGraphics/ProgramPipeline.hpp>
|
||||
#include <NBGraphics/VertexArray.hpp>
|
||||
#include <NBGraphics/VertexData.hpp>
|
||||
#include <NBGraphics/Window.hpp>
|
||||
#include <NBGraphics/Textures.hpp>
|
||||
|
||||
@@ -60,14 +61,12 @@ int main() {
|
||||
|
||||
std::vector<uint32_t> indxs = {0, 1, 2};
|
||||
|
||||
nb::VertexGroup tri(data, {
|
||||
nb::VertexAttribute{
|
||||
nb::IndexedMesh tri(GL_TRIANGLES, data, {nb::VertexAttribute{
|
||||
2,
|
||||
GL_FLOAT,
|
||||
nb::TypeCodes::FLOAT32,
|
||||
false,
|
||||
{0, 8}
|
||||
},
|
||||
}, indxs);
|
||||
}}, indxs);
|
||||
LOG(prog.log());
|
||||
|
||||
GLFWwindow* window_ptr = window->getWindowPtr();
|
||||
|
||||
Reference in New Issue
Block a user