Package | Description |
---|---|
Microsoft.Xna.Framework | |
Microsoft.Xna.Framework.Graphics |
Modifier and Type | Field and Description |
---|---|
static Rectangle |
Rectangle.Empty
Returns a Rectangle with all of its values set to zero.
|
Modifier and Type | Method and Description |
---|---|
static Rectangle |
Rectangle.Intersect(Rectangle value1,
Rectangle value2)
Creates a Rectangle defining the area where one rectangle overlaps with another rectangle.
|
static Rectangle |
Rectangle.Union(Rectangle value1,
Rectangle value2)
Creates a new Rectangle that exactly contains two other rectangles.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Rectangle.Contains(Rectangle value)
Determines whether this Rectangle entirely contains a specified Rectangle.
|
void |
Rectangle.Contains(Rectangle value,
boolean result)
Determines whether this Rectangle entirely contains a specified Rectangle.
|
boolean |
Rectangle.Equals(Rectangle other)
Determines whether the specified Object is equal to the Rectangle.
|
static Rectangle |
Rectangle.Intersect(Rectangle value1,
Rectangle value2)
Creates a Rectangle defining the area where one rectangle overlaps with another rectangle.
|
static void |
Rectangle.Intersect(Rectangle value1,
Rectangle value2,
Rectangle result)
Creates a Rectangle defining the area where one rectangle overlaps with another rectangle.
|
boolean |
Rectangle.Intersects(Rectangle value)
Determines whether a specified Rectangle intersects with this Rectangle.
|
void |
Rectangle.Intersects(Rectangle value,
boolean result)
Determines whether a specified Rectangle intersects with this Rectangle.
|
static Rectangle |
Rectangle.Union(Rectangle value1,
Rectangle value2)
Creates a new Rectangle that exactly contains two other rectangles.
|
static void |
Rectangle.Union(Rectangle value1,
Rectangle value2,
Rectangle result)
Creates a new Rectangle that exactly contains two other rectangles.
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
Texture2D.Bounds()
Gets the size of this resource.
|
Rectangle |
Viewport.getBounds()
Gets the size of this resource.
|
Rectangle |
PresentationParameters.getBounds() |
Rectangle |
DisplayMode.getTitleSafeArea()
Returns the title safe area of the display.
|
Rectangle |
Viewport.TitleSafeArea()
Returns the title safe area of the current viewport.
|
Modifier and Type | Method and Description |
---|---|
void |
SpriteBatch.Draw(Texture2D texture,
Rectangle destinationRectangle,
Color color)
Adds a sprite to a batch of sprites for rendering using the specified texture, destination rectangle, and color.
|
void |
SpriteBatch.Draw(Texture2D texture,
Rectangle destinationRectangle,
Rectangle sourceRectangle,
Color color)
Adds a sprite to a batch of sprites for rendering using the specified texture, destination rectangle, source rectangle, and color.
|
void |
SpriteBatch.Draw(Texture2D texture,
Rectangle destinationRectangle,
Rectangle sourceRectangle,
Color color,
float rotation,
Vector2 origin,
SpriteEffects effects,
float layerDepth) |
void |
SpriteBatch.Draw(Texture2D texture,
Vector2 position,
Rectangle sourceRectangle,
Color color)
Adds a sprite to a batch of sprites for rendering using the specified texture, position, source rectangle, and color.
|
void |
SpriteBatch.Draw(Texture2D texture,
Vector2 position,
Rectangle sourceRectangle,
Color color,
float rotation,
Vector2 origin,
float scale,
SpriteEffects effects,
float layerDepth)
Adds a sprite to a batch of sprites for rendering using the specified texture, destination rectangle, source rectangle, color, rotation, origin, effects and layer.
|
void |
SpriteBatch.Draw(Texture2D texture,
Vector2 position,
Rectangle sourceRectangle,
Color color,
float rotation,
Vector2 origin,
Vector2 scale,
SpriteEffects effects,
float layerDepth) |
<T extends java.lang.Number> |
GraphicsDevice.GetBackBufferData(Rectangle rect,
T[] data,
int startIndex,
int offset) |
<T extends java.lang.Number> |
TextureCube.GetData(CubeMapFace cubeMapFace,
int level,
Rectangle rect,
T[] data,
int startIndex,
int elementCount) |
<T> void |
Texture2D.GetData(int level,
Rectangle rect,
T[] data,
int startIndex,
int elementCount)
Gets a copy of 2D texture data, specifying a mipmap level, source rectangle, start index, and number of elements.
|
void |
Viewport.setBounds(Rectangle bounds)
Sets the size of this resource.
|
<T extends java.lang.Number> |
TextureCube.SetData(CubeMapFace cubeMapFace,
int level,
Rectangle rect,
T[] data,
int startIndex,
int elementCount)
Sets cube texture data, specifying a cubemap face, mipmap level, source rectangle, start index, and number of elements.
|
<T> void |
Texture2D.SetData(int level,
Rectangle rect,
T[] data,
int startIndex,
int elementCount)
Sets 2D texture data, specifying a mipmap level, source rectangle, start index, and number of elements.
|
Constructor and Description |
---|
Viewport(Rectangle bounds)
Creates an instance of this object.
|