KarmaEngine
Game Engine for practical learning and research purposes
Loading...
Searching...
No Matches
StaticMeshActor.h
Go to the documentation of this file.
1
9
10#pragma once
11
12#include "GameFramework/Actor.h"
14
15namespace Karma
16{
18
25 {
27
28 private:
34 //std::shared_ptr<class UStaticMeshComponent> m_StaticMeshComponent;
35 UStaticMeshComponent* m_StaticMeshComponent;
36
37 // Experimental
38 float m_RotationAngle;
39 float m_RotationSpeed;
40
41 public:
47 AStaticMeshActor(const std::string& name = "StaticMeshActor");
48
56 void LoadMeshFromFile(const std::string& filePath);
57
65 UStaticMeshComponent* GetStaticMeshComponent() const { return m_StaticMeshComponent; }
66
67 virtual void Tick(float DeltaSeconds) override;
68 };
69}
This file contains the class AActor.
#define KARMA_API
Defining Karma's API macro for storage class information.
Definition Core.h:41
#define DECLARE_KARMA_CLASS(TClass, TSuperClass)
Karma's gamecode object class declaration.
Definition GFrameworkMacros.h:45
Declaration of the StaticMeshComponent class, representing a component that handles static mesh rende...
AActor()
Definition Actor.cpp:12
AStaticMeshActor(const std::string &name="StaticMeshActor")
Constructor for StaticMeshActor.
Definition StaticMeshActor.cpp:8
void LoadMeshFromFile(const std::string &filePath)
Loads a static mesh from a file and assigns it to the static mesh component.
Definition StaticMeshActor.cpp:38
UStaticMeshComponent * GetStaticMeshComponent() const
Getter for the static mesh component.
Definition StaticMeshActor.h:65
A component that represents a static mesh in the game engine, responsible for rendering and managing ...
Definition StaticMeshComponent.h:25
Abstract class for UBO. A UBO is mostly used for shader variables, for instance projection or view ma...
Definition Buffer.h:376