Jypeli 10
The simple game programming library
|
Draws simple shapes efficiently. Draw() calls should be made only between Begin() and End() calls. Other drawing operations can be done between Begin() and End(). Lisää...
Julkiset jäsenfunktiot | |
void | Begin (ref Matrix matrix) |
void | Draw (Vector[] vertices, Int16[] indices, Color color, Vector2 position, Vector2 size, float angle) |
void | End () |
void | Initialize () |
Julkiset attribuutit | |
bool | LightingEnabled = true |
Yksityiset jäsenfunktiot | |
void | Flush () |
Yksityiset attribuutit | |
bool | beginHasBeenCalled = false |
Effect | effect |
int | iIndexBuffer = 0 |
Int16[] | indexBuffer |
Buffer for index values to the vertex buffer. Lisää... | |
int | iVertexBuffer = 0 |
Matrix | matrix |
SamplerState | samplerState |
VertexPositionColor[] | vertexBuffer |
Staattiset yksityiset attribuutit | |
const int | DefaultBufferSize = 512 |
Draws simple shapes efficiently. Draw() calls should be made only between Begin() and End() calls. Other drawing operations can be done between Begin() and End().
The shapes are added to a buffer. Only when the buffer is full, a draw call is made to the graphics device.
Määrittely tiedoston ShapeBatch.cs rivillä 19.
void Jypeli.ShapeBatch.Begin | ( | ref Matrix | matrix | ) |
Määrittely tiedoston ShapeBatch.cs rivillä 65.
Viittaukset Jypeli.ShapeBatch.beginHasBeenCalled, Jypeli.ShapeBatch.iIndexBuffer, Jypeli.ShapeBatch.iVertexBuffer ja Jypeli.ShapeBatch.matrix.
Viitattu Jypeli.Layer.DrawObjectsWithoutImages().
void Jypeli.ShapeBatch.Draw | ( | Vector[] | vertices, |
Int16[] | indices, | ||
Color | color, | ||
Vector2 | position, | ||
Vector2 | size, | ||
float | angle | ||
) |
Määrittely tiedoston ShapeBatch.cs rivillä 104.
Viittaukset Jypeli.Color.AsXnaColor(), Jypeli.ShapeBatch.Flush(), Jypeli.ShapeBatch.iIndexBuffer, Jypeli.ShapeBatch.indexBuffer, Jypeli.ShapeBatch.iVertexBuffer, Jypeli.ShapeBatch.matrix, Jypeli.ShapeBatch.vertexBuffer, Jypeli.Vector.X ja Jypeli.Vector.Y.
Viitattu Jypeli.Layer.DrawShape().
void Jypeli.ShapeBatch.End | ( | ) |
Määrittely tiedoston ShapeBatch.cs rivillä 75.
Viittaukset Jypeli.ShapeBatch.beginHasBeenCalled ja Jypeli.ShapeBatch.Flush().
Viitattu Jypeli.Layer.DrawObjectsWithoutImages().
|
private |
Määrittely tiedoston ShapeBatch.cs rivillä 82.
Viittaukset Jypeli.ShapeBatch.effect, Jypeli.Graphics.GetColorEffect(), Jypeli.Game.GraphicsDevice, Jypeli.ShapeBatch.iIndexBuffer, Jypeli.ShapeBatch.indexBuffer, Jypeli.ShapeBatch.iVertexBuffer, Jypeli.ShapeBatch.LightingEnabled, Jypeli.ShapeBatch.matrix, Jypeli.ShapeBatch.samplerState ja Jypeli.ShapeBatch.vertexBuffer.
Viitattu Jypeli.ShapeBatch.Draw() ja Jypeli.ShapeBatch.End().
void Jypeli.ShapeBatch.Initialize | ( | ) |
Määrittely tiedoston ShapeBatch.cs rivillä 48.
Viittaukset Jypeli.ShapeBatch.DefaultBufferSize, Jypeli.ShapeBatch.indexBuffer, Jypeli.ShapeBatch.samplerState ja Jypeli.ShapeBatch.vertexBuffer.
Viitattu Jypeli.Graphics.Initialize().
|
private |
Määrittely tiedoston ShapeBatch.cs rivillä 43.
Viitattu Jypeli.ShapeBatch.Begin() ja Jypeli.ShapeBatch.End().
|
staticprivate |
Määrittely tiedoston ShapeBatch.cs rivillä 21.
Viitattu Jypeli.ShapeBatch.Initialize().
|
private |
Määrittely tiedoston ShapeBatch.cs rivillä 36.
Viitattu Jypeli.ShapeBatch.Flush().
|
private |
Määrittely tiedoston ShapeBatch.cs rivillä 42.
Viitattu Jypeli.ShapeBatch.Begin(), Jypeli.ShapeBatch.Draw() ja Jypeli.ShapeBatch.Flush().
|
private |
Buffer for index values to the vertex buffer.
Since some low-end graphics cards don't support 32-bit indices, 16-bit indices must be used. Which is fine, as it means less traffic to the graphics card. We just have to make sure that the buffer size isn't larger than 16000.
Määrittely tiedoston ShapeBatch.cs rivillä 34.
Viitattu Jypeli.ShapeBatch.Draw(), Jypeli.ShapeBatch.Flush() ja Jypeli.ShapeBatch.Initialize().
|
private |
Määrittely tiedoston ShapeBatch.cs rivillä 41.
Viitattu Jypeli.ShapeBatch.Begin(), Jypeli.ShapeBatch.Draw() ja Jypeli.ShapeBatch.Flush().
bool Jypeli.ShapeBatch.LightingEnabled = true |
Määrittely tiedoston ShapeBatch.cs rivillä 45.
Viitattu Jypeli.ShapeBatch.Flush().
|
private |
Määrittely tiedoston ShapeBatch.cs rivillä 37.
Viitattu Jypeli.ShapeBatch.Begin(), Jypeli.ShapeBatch.Draw() ja Jypeli.ShapeBatch.Flush().
|
private |
Määrittely tiedoston ShapeBatch.cs rivillä 39.
Viitattu Jypeli.ShapeBatch.Flush() ja Jypeli.ShapeBatch.Initialize().
|
private |
Määrittely tiedoston ShapeBatch.cs rivillä 23.
Viitattu Jypeli.ShapeBatch.Draw(), Jypeli.ShapeBatch.Flush() ja Jypeli.ShapeBatch.Initialize().