Class SceneRenderer
java.lang.Object
buildengine.engine.stage.scene.renderer.SceneRenderer
- All Implemented Interfaces:
Renderer
- Direct Known Subclasses:
DefaultSceneRenderer
Scene renderer is responsible for rendering a scene and its components. Default implementation provided.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
drawDebugLines
(Actor actor) Draw the default debug lines around actors for Visibility Bounds and Collision Boundsprotected void
drawSprite
(Drawable drawable) Draw a sprite to the screen, taking counterpoint-perspective and camera into consideration.protected boolean
Checking if a rectangle intersects with the camera using lazy intersect.
-
Field Details
-
scene
-
-
Constructor Details
-
SceneRenderer
-
-
Method Details
-
drawSprite
Draw a sprite to the screen, taking counterpoint-perspective and camera into consideration. To be more specific, using the actor's location, subtracting half the size, and using that as the draw position. If the sprite or parts of the sprite (in case of REPEAT draw mode) are not visible to the camera object, it will not be drawn- Parameters:
drawable
- The drawable to be drawn
-
drawDebugLines
Draw the default debug lines around actors for Visibility Bounds and Collision Bounds- See Also:
-
isVisible
Checking if a rectangle intersects with the camera using lazy intersect.- Parameters:
rectangle
- The rectangle to check- Returns:
true
- if the rectangle intersects.
-