.. _program_listing_file_Src_GraphicsEngineOpenGL_scene_GameObject.hpp: Program Listing for File GameObject.hpp ======================================= |exhale_lsh| :ref:`Return to documentation for file ` (``Src/GraphicsEngineOpenGL/scene/GameObject.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #include "Model.hpp" #include "Rotation.hpp" class GameObject { public: GameObject(); GameObject(const std::string &model_path, glm::vec3 translation, GLfloat scale, Rotation rot); void init(const std::string &model_path, glm::vec3 translation, GLfloat scale, Rotation rot); glm::mat4 get_world_trafo(); glm::mat4 get_normal_world_trafo(); std::shared_ptr get_aabb(); std::shared_ptr get_model(); void translate(glm::vec3 translate); void scale(GLfloat scale_factor); void rotate(Rotation rot); void render(); ~GameObject(); private: std::shared_ptr model; GLfloat scale_factor; Rotation rot; glm::vec3 translation; };