Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <graphics_framework.h>
- #include "Common.h"
- graphics_framework::geometry sphere_geom = graphics_framework::geometry_builder::create_sphere();
- std::vector<graphics_framework::mesh> spheres;
- using namespace graphics_framework;
- int main()
- {
- for (int i = 0; i < 100; ++i)
- spheres.push_back(graphics_framework::mesh(sphere_geom));
- glm::mat4& model = spheres[0].get_transform().get_transform_matrix();
- glm::mat4 V;
- glm::mat4 P;
- glm::mat4 MVP = P * V * model;
- glUniformMatrix4fv(effect::get_uniform_location("MVP"), 1, GL_FALSE, glm::value_ptr(MVP));
- renderer::render(spheres[0]);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement