GFX
  • Docs
  • API
Search Results for

    Show / Hide Table of Contents
    • Genesis.Core
      • AssetManager
      • Game
      • GameElement
      • GameEventHandler
      • GenesisWindow
      • IGameBehavior
      • Input
      • Layer
      • Light
      • Scene
      • Scene3D
      • SceneEventHandler
      • SceneSizeEvenHandler
      • Storage
      • Utils
    • Genesis.Core.Behaviors
      • AnimationBehavior
      • CameraFlags
      • CharacterController2D
      • ControllerPreset
      • MoveDirection
      • MovementFlags
      • SpriteMovementController
    • Genesis.Core.Behaviors.Physics2D
      • BufferedSpriteCollider
      • PhysicsBox2D
      • PhysicsPolygon2D
      • Rigidbody2D
    • Genesis.Core.Behaviors.Physics3D
      • BoxCollider
      • CapsuleCollider
      • ConvexHullBehavior
      • QubeConvexHull
      • SphereCollider
      • StaticMeshBehavior
    • Genesis.Core.Behaviors._3D
      • Stance
      • ThirdpersonCharacterController
    • Genesis.Core.GameElements
      • BufferedSprite
      • CameraElement
      • Element3D
      • Empty
      • Model
      • ParticleBuffers
      • ParticleDeffinition
      • ParticleEmitter
      • Qube
      • RectElement
      • Skybox
      • Sprite
      • SpriteShapeDeffinition
      • Terrain2D
      • Terrain3D
      • TerrainData
    • Genesis.Graphics
      • Animation
      • Camera
      • CameraType
      • Face
      • Font
      • Framebuffer
      • Glyphe
      • IRenderDevice
      • Material
      • MaterialBuffer
      • Mesh
      • PerspectiveCamera
      • Shader
      • ShaderProgram
      • TexCoords
      • Texture
      • Viewport
    • Genesis.Graphics.Animation3D
      • Animation
      • Animator
      • AssimpNodeData
      • Bone
      • KeyPosition
      • KeyRotation
      • KeyScale
      • ModelMesh
      • boneinfo
      • vertex
    • Genesis.Graphics.Physics
      • BulletDebugRenderer
    • Genesis.Graphics.RenderDevice
      • ClassicGL
      • GLRenderer
    • Genesis.Graphics.Shaders.OpenGL
      • AnimatedModelShader
      • BasicShader
      • DiffuseLightning
      • DiffuseNormalLightning
      • DiffuseNormalShader
      • DiffuseShader
      • DiffuseSolidShader
      • MVPRectShader
      • MVPShader
      • MVPSolidShader
      • ParticleShader
      • ScreenShader
      • SkyboxShader
      • SpriteShader
      • TerrainShader
      • WireframeShader
    • Genesis.Graphics.Shapes
      • BufferedSpriteShape
      • FrameShape
      • GlypheShape
      • LineShape
      • PlaneShape
      • QubeShape
      • RectShape
      • Shape
      • SpriteShape
    • Genesis.Math
      • Matrix4x4
      • NoisePoint
      • PerlinNoise
      • Rect
      • Vec3
    • Genesis.Physics
      • Aabb
      • HitResult
      • MatrixSet
      • MouseRay2
      • PhysicHandler
      • PhysicHandlerEvent
      • PhysicPropeterys
      • PhysicsBehavior
      • PhysicsBehaviorEvent
      • PhysicsHandler2D
      • PhysicsHandler3D
      • Raycast
    • Genesis.UI
      • Canvas
      • ImageButton
      • Label
      • ListItem
      • ListItemBehavior
      • ListSelector
      • ListSelectorBehavior
      • Panel
      • ProgressBar
      • UIEvent
      • UIParseHandler
      • UIParser
      • Widget

    Class PerspectiveCamera

    Represents a perspective camera derived from the Camera class.

    Inheritance
    object
    Camera
    PerspectiveCamera
    Inherited Members
    Camera.LookAt(GameElement)
    Camera.LookAt(GameElement, bool)
    Camera.GetRect()
    Camera.Location
    Camera.Size
    Camera.Rotation
    Camera.Near
    Camera.Far
    Camera.Type
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Genesis.Graphics
    Assembly: Genesis.dll
    Syntax
    public class PerspectiveCamera : Camera

    Constructors

    PerspectiveCamera(Vec3, Vec3, float, float)

    Constructor for the PerspectiveCamera class.

    Declaration
    public PerspectiveCamera(Vec3 location, Vec3 size, float near, float far)
    Parameters
    Type Name Description
    Vec3 location

    The position of the camera.

    Vec3 size

    The size of the camera.

    float near

    The near clipping plane of the camera.

    float far

    The far clipping plane of the camera.

    Methods

    CameraFront()

    Gets the front direction vector of the camera.

    Declaration
    public Vec3 CameraFront()
    Returns
    Type Description
    Vec3

    The front direction vector of the camera.

    Forward(float)

    Calculates a point in front of the camera at a specified distance.

    Declaration
    public Vec3 Forward(float distance)
    Parameters
    Type Name Description
    float distance

    The distance from the camera.

    Returns
    Type Description
    Vec3

    The calculated point in front of the camera.

    MoveBackward(float)

    Moves the camera backward by a specified value.

    Declaration
    public void MoveBackward(float value)
    Parameters
    Type Name Description
    float value

    The distance to move the camera backward.

    MoveDown(float)

    Moves the camera down by a specified value.

    Declaration
    public void MoveDown(float value)
    Parameters
    Type Name Description
    float value

    The distance to move the camera down.

    MoveForward(float)

    Moves the camera forward by a specified value.

    Declaration
    public void MoveForward(float value)
    Parameters
    Type Name Description
    float value

    The distance to move the camera forward.

    MoveLeft(float)

    Moves the camera left by a specified value.

    Declaration
    public void MoveLeft(float value)
    Parameters
    Type Name Description
    float value

    The distance to move the camera left.

    MoveRight(float)

    Moves the camera right by a specified value.

    Declaration
    public void MoveRight(float value)
    Parameters
    Type Name Description
    float value

    The distance to move the camera right.

    MoveUp(float)

    Moves the camera up by a specified value.

    Declaration
    public void MoveUp(float value)
    Parameters
    Type Name Description
    float value

    The distance to move the camera up.

    RenderToTexture(Game, IRenderDevice, Texture, Vec3)

    Renders the scene to a texture using a specified render target and resolution.

    Declaration
    public void RenderToTexture(Game game, IRenderDevice renderer, Texture renderTarget, Vec3 resolution)
    Parameters
    Type Name Description
    Game game

    The Game instance.

    IRenderDevice renderer

    The render device.

    Texture renderTarget

    The render target texture.

    Vec3 resolution

    The resolution of the rendered texture.

    RenderToTexture(Game, IRenderDevice, int, Vec3)

    Renders the scene to a texture using a specified render target ID and resolution.

    Declaration
    public void RenderToTexture(Game game, IRenderDevice renderer, int renderTarget, Vec3 resolution)
    Parameters
    Type Name Description
    Game game

    The Game instance.

    IRenderDevice renderer

    The render device.

    int renderTarget

    The ID of the render target.

    Vec3 resolution

    The resolution of the rendered texture.

    In this article
    Back to top Generated by DocFX