![]() |
Jypeli 4
The simple game programming library
|
Luokka, joka sisältää metodeita kuvioiden ja tekstuurien piirtämiseen 2D-tasossa. Lisää...
Julkiset jäsenfunktiot | |
| void | DrawImage (Image texture, ref Matrix matrix, Vector wrapSize) |
| void | DrawShape (Shape shape, ref Matrix transformation, ref Matrix textureTransformation, Image texture, Vector textureWrapSize, Color color) |
| Piirtää kuvion niin, että tekstuuri täyttää sen. | |
| void | DrawShape (Shape shape, ref Matrix matrix, Color color) |
| void | DrawRaySegment (RaySegment segment, ref Matrix matrix, Color color) |
| void | DrawPolygon (Vector[] vertices, ref Matrix matrix, Color color) |
Ominaisuudet | |
| bool | LightingEnabled [get, set] |
Luokka, joka sisältää metodeita kuvioiden ja tekstuurien piirtämiseen 2D-tasossa.
Toteutus on yksinkertainen ja siten hidas. Jos on paljon samankaltaisia piirrettäviä kohteita, niin käytä mielummin Batch-luokkia.
| void DrawShape | ( | Shape | shape, |
| ref Matrix | transformation, | ||
| ref Matrix | textureTransformation, | ||
| Image | texture, | ||
| Vector | textureWrapSize, | ||
| Color | color | ||
| ) | [inline] |
Piirtää kuvion niin, että tekstuuri täyttää sen.
1.7.4