Etterna 0.74.4
Loading...
Searching...
No Matches
ActorFrameTexture.h
1#ifndef ACTOR_FRAME_TEXTURE_H
2#define ACTOR_FRAME_TEXTURE_H
3
4#include "ActorFrame.h"
6
8{
9 public:
12 ~ActorFrameTexture() override;
13 [[nodiscard]] ActorFrameTexture* Copy() const override;
14
23 void SetTextureName(const std::string& sName) { m_sTextureName = sName; }
27 [[nodiscard]] std::string GetTextureName() const { return m_sTextureName; }
28 [[nodiscard]] RageTextureRenderTarget* GetTexture() const
29 {
30 return m_pRenderTarget;
31 }
32
33 void EnableDepthBuffer(bool b) { m_bDepthBuffer = b; }
34 void EnableAlphaBuffer(bool b) { m_bAlphaBuffer = b; }
35 void EnableFloat(bool b) { m_bFloat = b; }
36 void EnablePreserveTexture(bool b) { m_bPreserveTexture = b; }
37
38 void Create();
39
40 void DrawPrimitives() override;
41
42 // Commands
43 void PushSelf(lua_State* L) override;
44
45 private:
46 RageTextureRenderTarget* m_pRenderTarget;
47
48 bool m_bDepthBuffer;
49 bool m_bAlphaBuffer;
50 bool m_bFloat;
51 bool m_bPreserveTexture;
53 std::string m_sTextureName;
54};
55
57{
58 public:
59 ActorFrameTextureAutoDeleteChildren() { DeleteChildrenWhenDone(true); }
60 [[nodiscard]] bool AutoLoadChildren() const override { return true; }
61 [[nodiscard]] ActorFrameTextureAutoDeleteChildren* Copy() const override;
62};
63
64#endif
Definition ActorFrameTexture.h:57
Definition ActorFrameTexture.h:8
std::string GetTextureName() const
Retrieve the texture name.
Definition ActorFrameTexture.h:27
void DrawPrimitives() override
Draw the primitives of the Actor.
Definition ActorFrameTexture.cpp:79
void SetTextureName(const std::string &sName)
Set the texture name.
Definition ActorFrameTexture.h:23
A container for other Actors.
Definition ActorFrame.h:8
Definition RageTextureRenderTarget.h:12