C# 클래스 Axiom.RenderSystems.OpenGLES.GLESPixelUtil

파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

공개 메소드들

메소드 설명
ConvertToGLformat ( PixelBox data, OpenTK.Graphics.ES11 &outputFormat ) : PixelBox

GetClosestAxiomFormat ( OpenTK.Graphics.ES11 fmt ) : PixelFormat

Function to get the closest matching Axiom format to an internal GL format. To be precise, the format will be chosen that is most efficient to transfer to the card without losing precision. It is valid for this function to always return PixelFormat.A8R8G8B8.

GetClosestGLInternalFormat ( PixelFormat mFormat, bool hwGamma = false ) : OpenTK.Graphics.ES11.All

Takes the Axiom pixel format and returns the type that must be provided to GL as internal format. If no match exists, returns the closest match.

GetGLInternalFormat ( PixelFormat fmt, bool hwGamma ) : OpenTK.Graphics.ES11.All

Takes the Axiom pixel format and returns the type that must be provided to GL as internal format. 0 if no match exists.

GetGLOriginDataType ( PixelFormat mFormat ) : OpenTK.Graphics.ES11.All

Takes the Axiom pixel format and returns type that must be provided to GL as data type for reading it into the GPU

GetGLOriginFormat ( PixelFormat fmt ) : OpenTK.Graphics.ES11.All

Takes the Axiom pixel format and returns the appropriate GL one

GetMaxMipmaps ( int width, int height, int depth, PixelFormat format ) : int

Returns the maximum number of Mipmaps that can be generated until we reach the mininum format possible. This does not count the base level.

In case that the format is non-compressed, this simply returns how many times we can divide this texture in 2 until we reach 1x1. For compressed formats, constraints apply on minimum size and alignment so this might differ.

OptionalPO2 ( int value ) : int

Returns next power-of-two size if required by render system, in case RSC_NON_POWER_OF_2_TEXTURES is supported it returns value as-is.

메소드 상세

ConvertToGLformat() 공개 정적인 메소드

public static ConvertToGLformat ( PixelBox data, OpenTK.Graphics.ES11 &outputFormat ) : PixelBox
data Axiom.Media.PixelBox
outputFormat OpenTK.Graphics.ES11
리턴 Axiom.Media.PixelBox

GetClosestAxiomFormat() 공개 정적인 메소드

Function to get the closest matching Axiom format to an internal GL format. To be precise, the format will be chosen that is most efficient to transfer to the card without losing precision. It is valid for this function to always return PixelFormat.A8R8G8B8.
public static GetClosestAxiomFormat ( OpenTK.Graphics.ES11 fmt ) : PixelFormat
fmt OpenTK.Graphics.ES11
리턴 PixelFormat

GetClosestGLInternalFormat() 공개 정적인 메소드

Takes the Axiom pixel format and returns the type that must be provided to GL as internal format. If no match exists, returns the closest match.
public static GetClosestGLInternalFormat ( PixelFormat mFormat, bool hwGamma = false ) : OpenTK.Graphics.ES11.All
mFormat PixelFormat mFormat The pixel format
hwGamma bool hwGamma Whether a hardware gamma-corrected version is requested
리턴 OpenTK.Graphics.ES11.All

GetGLInternalFormat() 공개 정적인 메소드

Takes the Axiom pixel format and returns the type that must be provided to GL as internal format. 0 if no match exists.
public static GetGLInternalFormat ( PixelFormat fmt, bool hwGamma ) : OpenTK.Graphics.ES11.All
fmt PixelFormat
hwGamma bool
리턴 OpenTK.Graphics.ES11.All

GetGLOriginDataType() 공개 정적인 메소드

Takes the Axiom pixel format and returns type that must be provided to GL as data type for reading it into the GPU
public static GetGLOriginDataType ( PixelFormat mFormat ) : OpenTK.Graphics.ES11.All
mFormat PixelFormat
리턴 OpenTK.Graphics.ES11.All

GetGLOriginFormat() 공개 정적인 메소드

Takes the Axiom pixel format and returns the appropriate GL one
public static GetGLOriginFormat ( PixelFormat fmt ) : OpenTK.Graphics.ES11.All
fmt PixelFormat
리턴 OpenTK.Graphics.ES11.All

GetMaxMipmaps() 공개 정적인 메소드

Returns the maximum number of Mipmaps that can be generated until we reach the mininum format possible. This does not count the base level.
In case that the format is non-compressed, this simply returns how many times we can divide this texture in 2 until we reach 1x1. For compressed formats, constraints apply on minimum size and alignment so this might differ.
public static GetMaxMipmaps ( int width, int height, int depth, PixelFormat format ) : int
width int The width of the area
height int The height of the area
depth int The depth of the area
format PixelFormat The format of the area
리턴 int

OptionalPO2() 공개 정적인 메소드

Returns next power-of-two size if required by render system, in case RSC_NON_POWER_OF_2_TEXTURES is supported it returns value as-is.
public static OptionalPO2 ( int value ) : int
value int
리턴 int