vengine  0.1.0
3D graphics engine made with Vulkan
Loading...
Searching...
No Matches
ven::Transform3DComponent Struct Reference

#include <Object.hpp>

+ Collaboration diagram for ven::Transform3DComponent:

Public Member Functions

glm::mat4 mat4 () const
 
glm::mat3 normalMatrix () const
 

Public Attributes

glm::vec3 translation {}
 
glm::vec3 scale {1.F, 1.F, 1.F}
 
glm::vec3 rotation {}
 

Detailed Description

Definition at line 20 of file Object.hpp.

Member Function Documentation

◆ mat4()

glm::mat4 ven::Transform3DComponent::mat4 ( ) const
nodiscard

Definition at line 3 of file object.cpp.

References rotation, scale, and translation.

◆ normalMatrix()

glm::mat3 ven::Transform3DComponent::normalMatrix ( ) const
nodiscard

Definition at line 38 of file object.cpp.

Member Data Documentation

◆ rotation

glm::vec3 ven::Transform3DComponent::rotation {}

Definition at line 23 of file Object.hpp.

Referenced by ven::Engine::mainLoop(), and mat4().

◆ scale

glm::vec3 ven::Transform3DComponent::scale {1.F, 1.F, 1.F}

Definition at line 22 of file Object.hpp.

Referenced by ven::Engine::loadObjects(), ven::Object::makePointLight(), and mat4().

◆ translation

glm::vec3 ven::Transform3DComponent::translation {}

Definition at line 21 of file Object.hpp.

Referenced by ven::Engine::loadObjects(), ven::Engine::mainLoop(), and mat4().


The documentation for this struct was generated from the following files: