Logo
Billboard.h
1#pragma once
2
3#include "Primitive.h"
4
6{
7 ref class PhysicsObject;
8}
9
10namespace SharpKmyGfx
11{
12 ref class Material;
13
14 public ref class BillboardChar : public Primitive
15 {
16 public:
17 BillboardChar(unsigned int resolution, System::String^ shaderName, System::Guid guid);
18 BillboardChar(unsigned int resolution, bool useAlpha, bool useLighting, System::Guid guid);
19 BillboardChar(unsigned int resolution, System::Guid guid);
21
22 void setResolution(u32 resolution);
23 void addMotion(System::Guid guid, System::String^ name, UInt32 slicetype, UInt32 hdiv, UInt32 vdiv, UInt32 speed, UInt32 animtype, float angleOffset, float yOffset);
24 void removeMotion(int index);
25 void updateMotion(int index, System::Guid guid, System::String^ name, UInt32 hdiv, UInt32 vdiv, UInt32 speed, UInt32 animtype, float angleOffset, float yOffset);
26 void play(System::String^ name, bool force);
27 void play(System::String^ name) { play(name, false); }
28
29 void setTopViewMode(bool enabled);
30 void setColor(float r, float g, float b, float a);
31 void setXY(int x, int y);
32 void setFlip(bool flipH, bool flipV);
33 void setScale(float scl);
34 void setScale(float sclX, float sclY);
35 void setBillboardMode(UInt32 mode);
37 int getDivY();
39
41 static void circleShadowResourceFinalize();
42 static void enableCascadeShadow(bool flg);
43 static void setOrtho(bool flg);
44 static array<BillboardChar^>^ findByAssetID(System::Guid guid);
45
46 private:
48 };
49}
Definition: Billboard.h:15
void setColor(float r, float g, float b, float a)
Definition: Billboard.cpp:94
void setResolution(u32 resolution)
Definition: Billboard.cpp:37
void addMotion(System::Guid guid, System::String^ name, UInt32 slicetype, UInt32 hdiv, UInt32 vdiv, UInt32 speed, UInt32 animtype, float angleOffset, float yOffset)
Definition: Billboard.cpp:42
static void setOrtho(bool flg)
Definition: Billboard.cpp:157
static void enableCascadeShadow(bool flg)
Definition: Billboard.cpp:84
~BillboardChar()
Definition: Billboard.cpp:32
int getDivY()
Definition: Billboard.cpp:146
void setXY(int x, int y)
Definition: Billboard.cpp:99
void setScale(float scl)
Definition: Billboard.cpp:109
static void circleShadowResourceFinalize()
Definition: Billboard.cpp:79
void play(System::String^ name)
Definition: Billboard.h:27
SharpKmyPhysics::PhysicsObject getPhysicsObject()
Definition: Billboard.cpp:137
void setBillboardMode(UInt32 mode)
Definition: Billboard.cpp:124
static void circleShadowResourceInitialize()
Definition: Billboard.cpp:74
static array< BillboardChar^> findByAssetID(System::Guid guid)
Definition: Billboard.cpp:163
void play(System::String^ name, bool force)
Definition: Billboard.cpp:61
void updateMotion(int index, System::Guid guid, System::String^ name, UInt32 hdiv, UInt32 vdiv, UInt32 speed, UInt32 animtype, float angleOffset, float yOffset)
Definition: Billboard.cpp:54
void removeMotion(int index)
Definition: Billboard.cpp:49
void setTopViewMode(bool enabled)
Definition: Billboard.cpp:89
void getSize(SharpKmyMath::Vector2% size)
Definition: Billboard.cpp:129
void setFlip(bool flipH, bool flipV)
Definition: Billboard.cpp:104
Definition: Primitive.h:11
Definition: PhysicsObject.h:17
Definition: Billboard.cpp:4
Definition: Billboard.h:6
Definition: Vector3.h:186