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 Face

    Represents a face in a 3D model with vertices, texture coordinates, and optional properties.

    Inheritance
    object
    Face
    Inherited Members
    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 Face

    Constructors

    Face()

    Initializes a new instance of the Face class.

    Declaration
    public Face()

    Face(Texture)

    Initializes a new instance of the Face class with a specified texture.

    Declaration
    public Face(Texture texture)
    Parameters
    Type Name Description
    Texture texture

    The texture associated with the face.

    Face(Vec3[])

    Initializes a new instance of the Face class with specified vertices.

    Declaration
    public Face(Vec3[] vecs)
    Parameters
    Type Name Description
    Vec3[] vecs

    An array of vertices defining the face.

    Face(Vec3[], Vec3[], Texture)

    Initializes a new instance of the Face class with specified vertices, texture coordinates, and a texture.

    Declaration
    public Face(Vec3[] vecs, Vec3[] texCords, Texture texture)
    Parameters
    Type Name Description
    Vec3[] vecs

    An array of vertices defining the face.

    Vec3[] texCords

    An array of texture coordinates associated with the face vertices.

    Texture texture

    The texture associated with the face.

    Properties

    Propertys

    Gets or sets additional properties associated with the face.

    Declaration
    public Dictionary<string, object> Propertys { get; set; }
    Property Value
    Type Description
    Dictionary<string, object>

    TexCords

    Gets or sets the list of texture coordinates associated with the face vertices.

    Declaration
    public List<Vec3> TexCords { get; set; }
    Property Value
    Type Description
    List<Vec3>

    Texture

    Gets or sets the texture associated with the face.

    Declaration
    public Texture Texture { get; set; }
    Property Value
    Type Description
    Texture

    Vertices

    Gets or sets the list of vertices defining the face.

    Declaration
    public List<Vec3> Vertices { get; set; }
    Property Value
    Type Description
    List<Vec3>

    Methods

    InitFace(IRenderDevice)

    Initializes the face by loading its associated texture using the specified renderer.

    Declaration
    public void InitFace(IRenderDevice renderer)
    Parameters
    Type Name Description
    IRenderDevice renderer

    The renderer responsible for loading the texture.

    In this article
    Back to top Generated by DocFX