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
45 private:
47 };
48}
Definition: Billboard.h:15
void setColor(float r, float g, float b, float a)
Definition: Billboard.cpp:120
void setResolution(u32 resolution)
Definition: Billboard.cpp:45
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:52
static void setOrtho(bool flg)
Definition: Billboard.cpp:201
static void enableCascadeShadow(bool flg)
Definition: Billboard.cpp:106
~BillboardChar()
Definition: Billboard.cpp:38
int getDivY()
Definition: Billboard.cpp:188
void setXY(int x, int y)
Definition: Billboard.cpp:127
void setScale(float scl)
Definition: Billboard.cpp:141
static void circleShadowResourceFinalize()
Definition: Billboard.cpp:99
void play(System::String^ name)
Definition: Billboard.h:27
SharpKmyPhysics::PhysicsObject getPhysicsObject()
Definition: Billboard.cpp:177
void setBillboardMode(UInt32 mode)
Definition: Billboard.cpp:160
static void circleShadowResourceInitialize()
Definition: Billboard.cpp:92
void play(System::String^ name, bool force)
Definition: Billboard.cpp:77
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:68
void removeMotion(int index)
Definition: Billboard.cpp:61
void setTopViewMode(bool enabled)
Definition: Billboard.cpp:113
void getSize(SharpKmyMath::Vector2% size)
Definition: Billboard.cpp:167
void setFlip(bool flipH, bool flipV)
Definition: Billboard.cpp:134
Definition: Primitive.h:11
Definition: PhysicsObject.h:17
Definition: Asset.h:4
Definition: Billboard.h:6
Definition: Vector2.h:5