![]() |
Paradox Game Engine
v1.0.0 beta06
|
Primitive quad use to draw an effect on a quad (fullscreen by default). This is directly accessible from the GraphicsDevice.DrawQuad method. More...
Public Member Functions | |
PrimitiveQuad (GraphicsDevice graphicsDevice) | |
Initializes a new instance of the PrimitiveQuad class with a SimpleEffect. More... | |
PrimitiveQuad (GraphicsDevice graphicsDevice, Effect effect) | |
Initializes a new instance of the PrimitiveQuad class with a particular effect. More... | |
void | Draw () |
Draws a quad. The effect must have been applied before calling this method with pixel shader having the signature float2:TEXCOORD. More... | |
void | Draw (Texture texture) |
Draws a quad with a texture. This Draw method is using the current effect bound to this instance. More... | |
void | Draw (Texture texture, SamplerState samplerState, Color4 color) |
Draws a quad with a texture. This Draw method is using a simple pixel shader that is sampling the texture. More... | |
![]() | |
void | Dispose () |
override string | ToString () |
Properties | |
GraphicsDevice | GraphicsDevice [get, set] |
Gets the graphics device. More... | |
![]() | |
long | Id [get, set] |
string | Name [get, set] |
Gets or sets the name of this component. More... | |
bool | IsDisposed [get, set] |
Has the component been disposed or not yet. More... | |
![]() | |
long | Id [get] |
Gets the id of this component. More... | |
string | Name [get] |
Gets the name of this component. More... | |
![]() | |
int | ReferenceCount [get] |
Gets the reference count of this instance. More... | |
![]() | |
ObjectCollector | Collector [get] |
Gets the collector. More... | |
Additional Inherited Members | |
![]() | |
PropertyContainer | Tags |
Gets the attached properties to this component. More... | |
![]() | |
ComponentBase () | |
Initializes a new instance of the ComponentBase class. More... | |
ComponentBase (string name) | |
Initializes a new instance of the ComponentBase class. More... | |
virtual void | OnNameChanged () |
Called when Name property was changed. More... | |
virtual void | Destroy () |
Disposes of object resources. More... | |
Primitive quad use to draw an effect on a quad (fullscreen by default). This is directly accessible from the GraphicsDevice.DrawQuad method.
Definition at line 13 of file PrimitiveQuad.cs.
SiliconStudio.Paradox.Graphics.PrimitiveQuad.PrimitiveQuad | ( | GraphicsDevice | graphicsDevice | ) |
Initializes a new instance of the PrimitiveQuad class with a SimpleEffect.
graphicsDevice | The graphics device. |
Definition at line 23 of file PrimitiveQuad.cs.
SiliconStudio.Paradox.Graphics.PrimitiveQuad.PrimitiveQuad | ( | GraphicsDevice | graphicsDevice, |
Effect | effect | ||
) |
Initializes a new instance of the PrimitiveQuad class with a particular effect.
graphicsDevice | The graphics device. |
effect | The effect. |
Definition at line 32 of file PrimitiveQuad.cs.
void SiliconStudio.Paradox.Graphics.PrimitiveQuad.Draw | ( | ) |
Draws a quad. The effect must have been applied before calling this method with pixel shader having the signature float2:TEXCOORD.
Definition at line 49 of file PrimitiveQuad.cs.
void SiliconStudio.Paradox.Graphics.PrimitiveQuad.Draw | ( | Texture | texture | ) |
Draws a quad with a texture. This Draw method is using the current effect bound to this instance.
texture | The texture. |
Definition at line 60 of file PrimitiveQuad.cs.
References SiliconStudio.Core.Mathematics.Color.White.
void SiliconStudio.Paradox.Graphics.PrimitiveQuad.Draw | ( | Texture | texture, |
SamplerState | samplerState, | ||
Color4 | color | ||
) |
Draws a quad with a texture. This Draw method is using a simple pixel shader that is sampling the texture.
texture | The texture to draw. |
samplerState | State of the sampler. If null, default sampler is SamplerStateFactory.LinearClamp. |
color | The color. |
System.ArgumentException | Expecting a Texture2D;texture |
Definition at line 72 of file PrimitiveQuad.cs.
|
getset |