Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GFXWindow

GFX窗口。

Hierarchy

Index

Constructors

constructor

Properties

Protected _colorFmt

_colorFmt: GFXFormat = GFXFormat.UNKNOWN

Protected _colorTex

_colorTex: GFXTexture | null = null

Protected _colorTexView

_colorTexView: GFXTextureView | null = null

Protected _depthStencilFmt

_depthStencilFmt: GFXFormat = GFXFormat.UNKNOWN

Protected _depthStencilTex

_depthStencilTex: GFXTexture | null = null

Protected _depthStencilTexView

_depthStencilTexView: GFXTextureView | null = null

Protected _device

_device: GFXDevice

Protected _framebuffer

_framebuffer: GFXFramebuffer | null = null

Protected _gfxType

_gfxType: GFXObjectType = GFXObjectType.UNKNOWN

对象类型。

Protected _height

_height: number = 0

Protected _isOffscreen

_isOffscreen: boolean = false

Protected _left

_left: number = 0

Protected _nativeHeight

_nativeHeight: number = 0

Protected _nativeWidth

_nativeWidth: number = 0

Protected _renderPass

_renderPass: GFXRenderPass | null = null

Protected _status

_status: GFXStatus = GFXStatus.UNREADY

对象状态。

Protected _title

_title: string = ""

Protected _top

_top: number = 0

Protected _width

_width: number = 0

Accessors

colorFormat

  • 窗口颜色格式。

    Returns GFXFormat

colorTexView

  • 颜色纹理视图。

    Returns GFXTextureView | null

depthStencilTexView

  • 深度模板纹理视图。

    Returns GFXTextureView | null

detphStencilFormat

  • 窗口深度模板格式。

    Returns GFXFormat

framebuffer

  • GFX帧缓冲。

    Returns GFXFramebuffer

gfxType

height

  • get height(): number
  • 窗口高度。

    Returns number

isOffscreen

  • get isOffscreen(): boolean
  • 是否是离屏的。

    Returns boolean

renderPass

  • GFX渲染过程。

    Returns GFXRenderPass

status

width

  • get width(): number
  • 窗口宽度。

    Returns number

Methods

Abstract destroy

  • destroy(): any
  • 销毁函数。

    Returns any

Abstract initialize

  • 初始化函数。

    Parameters

    Returns boolean

Abstract resize

  • resize(width: number, height: number): any
  • 重置窗口大小。

    Parameters

    • width: number

      窗口宽度。

    • height: number

      窗口高度。

    Returns any

Generated using TypeDoc