Skip to content

Commit

Permalink
fix: delete examples, move to another repo
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAMS committed Apr 25, 2024
1 parent 91fc232 commit 3097b79
Show file tree
Hide file tree
Showing 1,753 changed files with 12 additions and 369,514 deletions.
10 changes: 10 additions & 0 deletions core/vertices_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,15 @@ vertices_t::vertices_t(unsigned int vertex_data_len, std::initializer_list<unsig

}

void vertices_t::update_vbo_buffer(unsigned int data_size, const float* vertex_data, unsigned int offset=0){
glBindBuffer(GL_ARRAY_BUFFER, VBO_id);
glBufferSubData(GL_ARRAY_BUFFER, offset, data_size, vertex_data);
}
void vertices_t::update_ebo_buffer(unsigned int data_size, const unsigned int* element_data, unsigned int offset=0){
glBindBuffer(GL_ARRAY_BUFFER, EBO_id);
glBufferSubData(GL_ARRAY_BUFFER, offset, data_size, element_data);
}

vertices_t::~vertices_t(){
/*
glDeleteVertexArrays(1, &VAO_id);
Expand All @@ -344,6 +353,7 @@ vertices_t::~vertices_t(){
void vertices_t::draw_array(GLenum draw_mode, int beg, int num) const{
glBindVertexArray(VAO_id);
glDrawArrays(draw_mode, beg, num);
glBindVertexArray(0);
}

void vertices_t::draw_array(GLenum draw_mode) const {
Expand Down
2 changes: 2 additions & 0 deletions core/vertices_layer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ class vertices_t{
void draw_array(GLenum draw_mode, int beg, int num) const;
void draw_array(GLenum draw_mode=GL_TRIANGLES) const;
void draw_element(GLenum draw_mode) const;
void update_vbo_buffer(unsigned int vertex_data_size, const float* vertex_data, unsigned int offset=0);
void update_ebo_buffer(unsigned int element_data_size, const unsigned int* element_data, unsigned int offset=0);
};

/**
Expand Down
2 changes: 0 additions & 2 deletions examples/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion examples/3rdparty/assimp
Submodule assimp deleted from 020554
16 changes: 0 additions & 16 deletions examples/3rdparty/glad/CMakeFiles/CMakeDirectoryInformation.cmake

This file was deleted.

19 changes: 0 additions & 19 deletions examples/3rdparty/glad/CMakeFiles/glad.dir/DependInfo.cmake

This file was deleted.

111 changes: 0 additions & 111 deletions examples/3rdparty/glad/CMakeFiles/glad.dir/build.make

This file was deleted.

11 changes: 0 additions & 11 deletions examples/3rdparty/glad/CMakeFiles/glad.dir/cmake_clean.cmake

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions examples/3rdparty/glad/CMakeFiles/glad.dir/compiler_depend.ts

This file was deleted.

2 changes: 0 additions & 2 deletions examples/3rdparty/glad/CMakeFiles/glad.dir/depend.make

This file was deleted.

10 changes: 0 additions & 10 deletions examples/3rdparty/glad/CMakeFiles/glad.dir/flags.make

This file was deleted.

2 changes: 0 additions & 2 deletions examples/3rdparty/glad/CMakeFiles/glad.dir/link.txt

This file was deleted.

3 changes: 0 additions & 3 deletions examples/3rdparty/glad/CMakeFiles/glad.dir/progress.make

This file was deleted.

1 change: 0 additions & 1 deletion examples/3rdparty/glad/CMakeFiles/progress.marks

This file was deleted.

2 changes: 0 additions & 2 deletions examples/3rdparty/glad/CMakeLists.txt

This file was deleted.

Loading

0 comments on commit 3097b79

Please sign in to comment.