2009-01-29 00:18:34 +08:00
|
|
|
/*
|
2010-01-07 04:37:29 +08:00
|
|
|
* DSFML - SFML Library wrapper for the D programming language.
|
|
|
|
* Copyright (C) 2008 Julien Dagorn (sirjulio13@gmail.com)
|
|
|
|
* Copyright (C) 2010 Andreas Hollandt
|
2009-01-29 00:18:34 +08:00
|
|
|
*
|
2010-01-07 04:37:29 +08:00
|
|
|
* This software is provided 'as-is', without any express or
|
|
|
|
* implied warranty. In no event will the authors be held
|
|
|
|
* liable for any damages arising from the use of this software.
|
2009-01-29 00:18:34 +08:00
|
|
|
*
|
2010-01-07 04:37:29 +08:00
|
|
|
* Permission is granted to anyone to use this software for any purpose,
|
|
|
|
* including commercial applications, and to alter it and redistribute
|
|
|
|
* it freely, subject to the following restrictions:
|
2009-01-29 00:18:34 +08:00
|
|
|
*
|
2010-01-07 04:37:29 +08:00
|
|
|
* 1. The origin of this software must not be misrepresented;
|
|
|
|
* you must not claim that you wrote the original software.
|
|
|
|
* If you use this software in a product, an acknowledgment
|
|
|
|
* in the product documentation would be appreciated but
|
|
|
|
* is not required.
|
2009-01-29 00:18:34 +08:00
|
|
|
*
|
2010-01-07 04:37:29 +08:00
|
|
|
* 2. Altered source versions must be plainly marked as such,
|
|
|
|
* and must not be misrepresented as being the original software.
|
2009-01-29 00:18:34 +08:00
|
|
|
*
|
2010-01-07 04:37:29 +08:00
|
|
|
* 3. This notice may not be removed or altered from any
|
|
|
|
* source distribution.
|
2009-01-29 00:18:34 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
module dsfml.graphics.drawableimpl;
|
|
|
|
|
|
|
|
public import dsfml.system.common;
|
|
|
|
import dsfml.system.vector2;
|
|
|
|
|
2010-03-10 02:58:41 +08:00
|
|
|
import dsfml.graphics.irendertarget;
|
2010-01-08 02:07:22 +08:00
|
|
|
import dsfml.graphics.idrawable,
|
|
|
|
dsfml.graphics.color,
|
|
|
|
dsfml.graphics.blendmode,
|
|
|
|
dsfml.graphics.renderwindow,
|
|
|
|
dsfml.graphics.renderimage,
|
|
|
|
dsfml.graphics.shader;
|
2009-01-29 00:18:34 +08:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
2010-03-14 06:44:26 +08:00
|
|
|
* Package base class of all drawable.
|
|
|
|
* Provide implementation of IDrawable and functions aliases.
|
|
|
|
*/
|
|
|
|
package class DrawableImpl(alias derivedClassName) : DSFMLObject, IDrawable
|
2009-01-29 00:18:34 +08:00
|
|
|
{
|
2010-01-07 04:25:45 +08:00
|
|
|
protected:
|
|
|
|
this()
|
|
|
|
{
|
|
|
|
super(sfDrawable_Create());
|
|
|
|
}
|
|
|
|
|
|
|
|
this(void* ptr)
|
|
|
|
{
|
2010-01-13 03:56:38 +08:00
|
|
|
super(ptr, true);
|
2010-01-07 04:25:45 +08:00
|
|
|
}
|
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
override void dispose()
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
sfDrawable_Destroy(m_ptr);
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
public:
|
2010-01-07 04:37:29 +08:00
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
void rotate(float angle)
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
sfDrawable_Rotate(m_ptr, angle);
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
void move(float offsetX, float offsetY)
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
sfDrawable_Move(m_ptr, offsetX, offsetY);
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
void move(Vector2f offset)
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
sfDrawable_Move(m_ptr, offset.x, offset.y);
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
2010-03-14 06:44:26 +08:00
|
|
|
|
|
|
|
Vector2f tranformToLocal(Vector2f point)
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
Vector2f ret;
|
|
|
|
sfDrawable_TransformToLocal(m_ptr, point.x, point.y, &ret.x, &ret.y);
|
|
|
|
return ret;
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
Vector2f tranformToGlobal(Vector2f point)
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
Vector2f ret;
|
|
|
|
sfDrawable_TransformToLocal(m_ptr, point.x, point.y, &ret.x, &ret.y);
|
|
|
|
return ret;
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
void render(IRenderTarget window)
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
sfRenderWindow_DrawThis((cast(DSFMLObject)window).getNativePointer(), m_ptr);
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
2010-03-14 06:44:26 +08:00
|
|
|
|
|
|
|
void renderWithShader(IRenderTarget window, Shader shader)
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
sfRenderWindow_DrawThisWithShader((cast(DSFMLObject)window).getNativePointer, m_ptr, shader.getNativePointer);
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
void setPosition(float x, float y)
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
sfDrawable_SetPosition(m_ptr, x, y);
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
void setScale(float scaleX, float scaleY)
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
sfDrawable_SetScale(m_ptr, scaleX, scaleY);
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
2010-03-14 06:44:26 +08:00
|
|
|
|
|
|
|
void setOrigin(float originX, float originY)
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
sfDrawable_SetOrigin(m_ptr, originX, originY);
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
2010-03-14 06:44:26 +08:00
|
|
|
|
|
|
|
@property
|
|
|
|
{
|
|
|
|
void x(float x)
|
2009-01-29 00:18:34 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
sfDrawable_SetX(m_ptr, x);
|
2009-01-29 00:18:34 +08:00
|
|
|
}
|
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
void y(float y)
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
sfDrawable_SetY(m_ptr, y);
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
2009-01-29 00:18:34 +08:00
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
void position(Vector2f vec)
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
sfDrawable_SetPosition(m_ptr, vec.x, vec.y);
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
2009-01-29 00:18:34 +08:00
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
void scaleX(float scale)
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
if (scale > 0)
|
|
|
|
sfDrawable_SetScaleX(m_ptr, scale);
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
void scaleY(float scale)
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
if (scale > 0)
|
|
|
|
sfDrawable_SetScaleY(m_ptr, scale);
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
2009-01-29 00:18:34 +08:00
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
void scale(Vector2f scale)
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
if (scale.x > 0 && scale.y > 0)
|
|
|
|
sfDrawable_SetScale(m_ptr, scale.x, scale.y);
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
2009-01-29 00:18:34 +08:00
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
|
|
|
|
void origin(Vector2f origin)
|
2009-01-29 00:18:34 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
sfDrawable_SetOrigin(m_ptr, origin.x, origin.y);
|
2009-01-29 00:18:34 +08:00
|
|
|
}
|
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
void rotation(float angle)
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
sfDrawable_SetRotation(m_ptr, angle);
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
void color(Color c)
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
sfDrawable_SetColor(m_ptr, c);
|
|
|
|
}
|
|
|
|
|
|
|
|
void blendMode(BlendMode mode)
|
|
|
|
{
|
|
|
|
sfDrawable_SetBlendMode(m_ptr, mode);
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
Vector2f position()
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
return Vector2f(sfDrawable_GetX(m_ptr), sfDrawable_GetY(m_ptr));
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
Vector2f scale()
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
return Vector2f(sfDrawable_GetScaleX(m_ptr), sfDrawable_GetScaleY(m_ptr));
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
Vector2f origin()
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
return Vector2f(sfDrawable_GetOriginX(m_ptr), sfDrawable_GetOriginY(m_ptr));
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
float rotation()
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
return sfDrawable_GetRotation(m_ptr);
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
Color color()
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
return sfDrawable_GetColor(m_ptr);
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
BlendMode blendMode()
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
return cast(BlendMode)(sfDrawable_GetBlendMode(m_ptr));
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
void scale(Vector2f scale)
|
2010-01-07 04:37:29 +08:00
|
|
|
{
|
2010-03-14 06:44:26 +08:00
|
|
|
sfDrawable_SetScale(m_ptr, scale.x, scale.y);
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
2010-03-14 06:44:26 +08:00
|
|
|
}
|
2009-01-29 00:18:34 +08:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
2010-01-07 04:37:29 +08:00
|
|
|
extern (C)
|
|
|
|
{
|
|
|
|
typedef void* function() pf_sfDrawable_Create;
|
|
|
|
typedef void function(void*) pf_sfDrawable_Destroy;
|
|
|
|
typedef void function(void*, float) pf_sfDrawable_SetX;
|
|
|
|
typedef void function(void*, float) pf_sfDrawable_SetY;
|
|
|
|
typedef void function(void*, float, float) pf_sfDrawable_SetPosition;
|
|
|
|
typedef void function(void*, float) pf_sfDrawable_SetScaleX;
|
|
|
|
typedef void function(void*, float) pf_sfDrawable_SetScaleY;
|
|
|
|
typedef void function(void*, float, float) pf_sfDrawable_SetScale;
|
|
|
|
typedef void function(void*, float) pf_sfDrawable_SetRotation;
|
|
|
|
typedef void function(void*, float, float) pf_sfDrawable_SetOrigin;
|
|
|
|
typedef void function(void*, Color) pf_sfDrawable_SetColor;
|
|
|
|
typedef void function(void*, BlendMode) pf_sfDrawable_SetBlendMode;
|
|
|
|
typedef float function(void*) pf_sfDrawable_GetX;
|
|
|
|
typedef float function(void*) pf_sfDrawable_GetY;
|
|
|
|
typedef float function(void*) pf_sfDrawable_GetScaleX;
|
|
|
|
typedef float function(void*) pf_sfDrawable_GetScaleY;
|
|
|
|
typedef float function(void*) pf_sfDrawable_GetRotation;
|
|
|
|
typedef float function(void*) pf_sfDrawable_GetOriginX;
|
|
|
|
typedef float function(void*) pf_sfDrawable_GetOriginY;
|
|
|
|
typedef Color function(void*) pf_sfDrawable_GetColor;
|
|
|
|
typedef BlendMode function(void*) pf_sfDrawable_GetBlendMode;
|
|
|
|
typedef void function(void*, float, float) pf_sfDrawable_Move;
|
|
|
|
typedef void function(void*, float, float) pf_sfDrawable_Scale;
|
|
|
|
typedef void function(void*, float) pf_sfDrawable_Rotate;
|
|
|
|
typedef void function(void*, float, float, float*, float*) pf_sfDrawable_TransformToLocal;
|
|
|
|
typedef void function(void*, float, float, float*, float*) pf_sfDrawable_TransformToGlobal;
|
|
|
|
|
|
|
|
typedef void function(void*, void*) pf_sfRenderWindow_DrawThis;
|
|
|
|
typedef void function(void*, void*, void*) pf_sfRenderWindow_DrawThisWithShader;
|
2010-01-08 02:07:22 +08:00
|
|
|
typedef void function(void*, void*) pf_sfRenderImage_DrawThis;
|
|
|
|
typedef void function(void*, void*, void*) pf_sfRenderImage_DrawThisWithShader;
|
2010-01-07 04:37:29 +08:00
|
|
|
|
|
|
|
static pf_sfDrawable_Create sfDrawable_Create;
|
|
|
|
static pf_sfDrawable_Destroy sfDrawable_Destroy;
|
|
|
|
static pf_sfDrawable_SetX sfDrawable_SetX;
|
|
|
|
static pf_sfDrawable_SetY sfDrawable_SetY;
|
|
|
|
static pf_sfDrawable_SetPosition sfDrawable_SetPosition;
|
|
|
|
static pf_sfDrawable_SetScaleX sfDrawable_SetScaleX;
|
|
|
|
static pf_sfDrawable_SetScaleY sfDrawable_SetScaleY;
|
|
|
|
static pf_sfDrawable_SetScale sfDrawable_SetScale;
|
|
|
|
static pf_sfDrawable_SetRotation sfDrawable_SetRotation;
|
|
|
|
static pf_sfDrawable_SetOrigin sfDrawable_SetOrigin;
|
|
|
|
static pf_sfDrawable_SetColor sfDrawable_SetColor;
|
|
|
|
static pf_sfDrawable_SetBlendMode sfDrawable_SetBlendMode;
|
|
|
|
static pf_sfDrawable_GetX sfDrawable_GetX;
|
|
|
|
static pf_sfDrawable_GetY sfDrawable_GetY;
|
|
|
|
static pf_sfDrawable_GetScaleX sfDrawable_GetScaleX;
|
|
|
|
static pf_sfDrawable_GetScaleY sfDrawable_GetScaleY;
|
|
|
|
static pf_sfDrawable_GetRotation sfDrawable_GetRotation;
|
|
|
|
static pf_sfDrawable_GetOriginX sfDrawable_GetOriginX;
|
|
|
|
static pf_sfDrawable_GetOriginY sfDrawable_GetOriginY;
|
|
|
|
static pf_sfDrawable_GetColor sfDrawable_GetColor;
|
|
|
|
static pf_sfDrawable_GetBlendMode sfDrawable_GetBlendMode;
|
|
|
|
static pf_sfDrawable_Move sfDrawable_Move;
|
|
|
|
static pf_sfDrawable_Scale sfDrawable_Scale;
|
|
|
|
static pf_sfDrawable_Rotate sfDrawable_Rotate;
|
|
|
|
static pf_sfDrawable_TransformToLocal sfDrawable_TransformToLocal;
|
|
|
|
static pf_sfDrawable_TransformToGlobal sfDrawable_TransformToGlobal;
|
|
|
|
|
|
|
|
static pf_sfRenderWindow_DrawThis sfRenderWindow_DrawThis;
|
|
|
|
static pf_sfRenderWindow_DrawThisWithShader sfRenderWindow_DrawThisWithShader;
|
2010-01-08 02:07:22 +08:00
|
|
|
static pf_sfRenderImage_DrawThis sfRenderImage_DrawThis;
|
|
|
|
static pf_sfRenderImage_DrawThisWithShader sfRenderImage_DrawThisWithShader;
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
static this()
|
|
|
|
{
|
2010-01-07 04:25:45 +08:00
|
|
|
debug
|
|
|
|
DllLoader dll = DllLoader.load("csfml-graphics-d");
|
|
|
|
else
|
|
|
|
DllLoader dll = DllLoader.load("csfml-graphics");
|
2010-01-07 04:37:29 +08:00
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
sfDrawable_Create = cast(pf_sfDrawable_Create)dll.getSymbol(derivedClassName ~ "_Create");
|
|
|
|
sfDrawable_Destroy = cast(pf_sfDrawable_Destroy)dll.getSymbol(derivedClassName ~ "_Destroy");
|
|
|
|
sfDrawable_SetX = cast(pf_sfDrawable_SetX)dll.getSymbol(derivedClassName ~ "_SetX");
|
|
|
|
sfDrawable_SetY = cast(pf_sfDrawable_SetY)dll.getSymbol(derivedClassName ~ "_SetY");
|
|
|
|
sfDrawable_SetPosition = cast(pf_sfDrawable_SetPosition)dll.getSymbol(derivedClassName ~ "_SetPosition");
|
|
|
|
sfDrawable_SetScaleX = cast(pf_sfDrawable_SetScaleX)dll.getSymbol(derivedClassName ~ "_SetScaleX");
|
|
|
|
sfDrawable_SetScaleY = cast(pf_sfDrawable_SetScaleY)dll.getSymbol(derivedClassName ~ "_SetScaleY");
|
|
|
|
sfDrawable_SetScale = cast(pf_sfDrawable_SetScale)dll.getSymbol(derivedClassName ~ "_SetScale");
|
|
|
|
sfDrawable_SetRotation = cast(pf_sfDrawable_SetRotation)dll.getSymbol(derivedClassName ~ "_SetRotation");
|
|
|
|
sfDrawable_SetOrigin = cast(pf_sfDrawable_SetOrigin)dll.getSymbol(derivedClassName ~ "_SetOrigin");
|
|
|
|
sfDrawable_SetColor = cast(pf_sfDrawable_SetColor)dll.getSymbol(derivedClassName ~ "_SetColor");
|
|
|
|
sfDrawable_SetBlendMode = cast(pf_sfDrawable_SetBlendMode)dll.getSymbol(derivedClassName ~ "_SetBlendMode");
|
|
|
|
sfDrawable_GetX = cast(pf_sfDrawable_GetX)dll.getSymbol(derivedClassName ~ "_GetX");
|
|
|
|
sfDrawable_GetY = cast(pf_sfDrawable_GetY)dll.getSymbol(derivedClassName ~ "_GetY");
|
|
|
|
sfDrawable_GetScaleX = cast(pf_sfDrawable_GetScaleX)dll.getSymbol(derivedClassName ~ "_GetScaleX");
|
|
|
|
sfDrawable_GetScaleY = cast(pf_sfDrawable_GetScaleY)dll.getSymbol(derivedClassName ~ "_GetScaleX");
|
|
|
|
sfDrawable_GetRotation = cast(pf_sfDrawable_GetRotation)dll.getSymbol(derivedClassName ~ "_GetRotation");
|
|
|
|
sfDrawable_GetOriginX = cast(pf_sfDrawable_GetOriginX)dll.getSymbol(derivedClassName ~ "_GetOriginX");
|
|
|
|
sfDrawable_GetOriginY = cast(pf_sfDrawable_GetOriginY)dll.getSymbol(derivedClassName ~ "_GetOriginY");
|
|
|
|
sfDrawable_GetColor = cast(pf_sfDrawable_GetColor)dll.getSymbol(derivedClassName ~ "_GetColor");
|
|
|
|
sfDrawable_GetBlendMode = cast(pf_sfDrawable_GetBlendMode)dll.getSymbol(derivedClassName ~ "_GetBlendMode");
|
|
|
|
sfDrawable_Move = cast(pf_sfDrawable_Move)dll.getSymbol(derivedClassName ~ "_Move");
|
|
|
|
sfDrawable_Scale = cast(pf_sfDrawable_Scale)dll.getSymbol(derivedClassName ~ "_Scale");
|
|
|
|
sfDrawable_Rotate = cast(pf_sfDrawable_Rotate)dll.getSymbol(derivedClassName ~ "_Rotate");
|
|
|
|
sfDrawable_TransformToLocal = cast(pf_sfDrawable_TransformToLocal)dll.getSymbol(derivedClassName ~ "_TransformToLocal");
|
|
|
|
sfDrawable_TransformToGlobal= cast(pf_sfDrawable_TransformToGlobal)dll.getSymbol(derivedClassName ~ "_TransformToGlobal");
|
2010-01-07 04:37:29 +08:00
|
|
|
|
2010-03-14 06:44:26 +08:00
|
|
|
sfRenderWindow_DrawThis = cast(pf_sfRenderWindow_DrawThis)dll.getSymbol("sfRenderWindow_Draw" ~ derivedClassName[2..$]);
|
|
|
|
sfRenderWindow_DrawThisWithShader = cast(pf_sfRenderWindow_DrawThisWithShader)dll.getSymbol("sfRenderWindow_Draw" ~ derivedClassName[2..$] ~ "WithShader");
|
|
|
|
sfRenderImage_DrawThis = cast(pf_sfRenderImage_DrawThis)dll.getSymbol("sfRenderImage_Draw" ~ derivedClassName[2..$]);
|
|
|
|
sfRenderImage_DrawThisWithShader = cast(pf_sfRenderImage_DrawThisWithShader)dll.getSymbol("sfRenderImage_Draw" ~ derivedClassName[2..$] ~ "WithShader");
|
2010-01-07 04:37:29 +08:00
|
|
|
}
|
2009-01-29 00:18:34 +08:00
|
|
|
}
|