 |
Jypeli
9
The simple game programming library
|
Siirry tämän tiedoston dokumentaatioon.
79 double barLength = Size.X *
Meter.RelativeValue;
82 Matrix.CreateScale((
float)barLength, (
float)Size.Y, 1f)
83 *
Matrix.CreateTranslation((
float)(barLength / 2), 0, 0)
84 *
Matrix.CreateTranslation((
float)(-Width / 2), 0, 0)
86 *
Matrix.CreateTranslation((
float)Position.X, (
float)Position.Y, 0.0f);
89 Matrix.CreateScale((
float)Size.X, (
float)Size.Y, 1f)
91 *
Matrix.CreateTranslation((
float)Position.X, (
float)Position.Y, 0.0f);
94 Matrix.CreateScale((
float)barLength, (
float)Size.Y, 1f)
95 *
Matrix.CreateTranslation((
float)(barLength / 2), 0, 0)
96 *
Matrix.CreateTranslation((
float)(-Width / 2), (
float)(-Height / 2), 0)
98 *
Matrix.CreateTranslation((
float)Position.X, (
float)Position.Y, 0.0f);
125 base.Draw(parentTransformation, transformation);
Mittari, joka mittaa erityyppisiä arvoja. Sidottavissa näyttöihin, kuten ValueDisplay ja BarGauge.
Luokka, joka sisältää metodeita kuvioiden ja tekstuurien piirtämiseen 2D-tasossa.
Microsoft.Xna.Framework.Matrix Matrix
static readonly Color Red
Punainen.
static void DrawFilledShape(ShapeCache cache, ref Matrix matrix, Color color)
Sisältää valmiiksi lasketut kolmiot, joiden avulla piirtäminen on suoraviivaista.
static readonly Rectangle Rectangle
Suorakulmio.
static readonly Color Transparent
Läpinäkyvä väri.
static void DrawImage(Image texture, ref Matrix matrix, Vector wrapSize)
static void EndDrawingInsideShape()
Muotojen määrityksessä käytettävä kolmio.
static void BeginDrawingInsideShape(Shape shape, ref Matrix transformation)
Makes all the subsequent draw calls until EndDrawingInsideShape limit the drawing inside shape (trans...
static void DrawPolygon(Vector[] vertices, ref Matrix matrix, Color color)
Suuntakulma (rajoitettu -180 ja 180 asteen välille) asteina ja radiaaneina. Tietoja kulmasta: http://...