Package Sce.PlayStation.Core.Graphics

Graphics features. More...

Classes

class  GraphicsContext
 Class representing the graphics context. More...
struct  Primitive
 Structure representing the primitive. More...
struct  CullFace
 Structure representing back-face culling. More...
struct  BlendFunc
 Structure representing the alpha-blending function. More...
struct  DepthFunc
 Structure representing the depth test function. More...
struct  PolygonOffset
 Structure representing the polygon offset. More...
struct  StencilFunc
 Structure representing the stencil test function. More...
struct  StencilOp
 Structure representing the stencil test operation. More...
struct  GraphicsCaps
 Class representing the graphics capacity. More...
class  ShaderProgram
 Class representing a shader program. More...
class  ShaderProgramOption
 Class representing shader program creation options. More...
class  VertexBuffer
 Class representing the vertex buffer. More...
class  PixelBuffer
 Base class representing the pixel buffer. More...
class  Texture
 Base class representing a texture. More...
class  Texture2D
 Class representing a 2D texture. More...
class  TextureCube
 Class representing a cube texture. More...
class  ColorBuffer
 Class representing the color buffer. More...
class  DepthBuffer
 Class representing the depth buffer. More...
struct  TextureFilter
 Structure representing the texture filter. More...
struct  TextureWrap
 Structure representing the texture wrap. More...
class  FrameBuffer
 Class representing the frame buffer. More...
struct  RenderTarget
 Structure representing the rendering result storage destination. More...

Enumerations

enum  ClearMask {
  None = 0x00, Color = 0x01, Depth = 0x02, Stencil = 0x04,
  All = 0x07
}
 

Buffer clear mask.

More...
enum  DrawMode {
  Points, Lines, LineStrip, Triangles,
  TriangleStrip, TriangleFan
}
 

Primitive rendering mode.

More...
enum  EnableMode {
  None = 0x00000000, ScissorTest = 0x00000001, CullFace = 0x00000002, Blend = 0x00000004,
  DepthTest = 0x00000008, PolygonOffsetFill = 0x00000010, StencilTest = 0x00000020, Dither = 0x00000040,
  All = 0x0000007f
}
 

Graphics feature to enable or disable.

More...
enum  CullFaceMode { None, Front, Back, FrontAndBack }
 

Back-face culling mode.

More...
enum  CullFaceDirection { Cw, Ccw }
 

Front direction for back-face culling.

More...
enum  BlendFuncMode { Add, Subtract, ReverseSubtract }
 

Alpha-blending function mode.

More...
enum  BlendFuncFactor {
  Zero, One, SrcColor, OneMinusSrcColor,
  SrcAlpha, OneMinusSrcAlpha, DstColor, OneMinusDstColor,
  DstAlpha, OneMinusDstAlpha, SrcAlphaSaturate
}
 

Alpha-blending function coefficient.

More...
enum  DepthFuncMode {
  Always, Never, Equal, NotEqual,
  Less, Greater, LEqual, GEqual
}
 

Depth test function mode.

More...
enum  StencilFuncMode {
  Always, Never, Equal, NotEqual,
  Less, Greater, LEqual, GEqual
}
 

Stencil test function mode.

More...
enum  StencilOpMode {
  Keep, Zero, Replace, Invert,
  Incr, Decr, IncrWrap, DecrWrap
}
 

Stencil test operation mode.

More...
enum  ColorMask {
  None = 0x00, R = 0x01, G = 0x02, B = 0x04,
  A = 0x08, Rgb = 0x07, Rgba = 0x0f
}
 

Color write mask.

More...
enum  ShaderUniformType {
  None = 0x0000, Float = 0x0100, Float2 = 0x0101, Float3 = 0x0102,
  Float4 = 0x0103, Float2x2 = 0x0111, Float3x3 = 0x0122, Float4x4 = 0x0133,
  Int = 0x0400, Int2 = 0x0401, Int3 = 0x0402, Int4 = 0x0403,
  Bool = 0x0300, Bool2 = 0x0301, Bool3 = 0x0302, Bool4 = 0x0303,
  Sampler2D = 0x8001, SamplerCube = 0x8002
}
 

Uniform variable type.

More...
enum  ShaderAttributeType {
  None = 0x0000, Float = 0x0100, Float2 = 0x0101, Float3 = 0x0102,
  Float4 = 0x0103
}
 

Attribute variable type.

More...
enum  VertexFormat {
  None = 0x0000, Float = 0x0100, Float2 = 0x0101, Float3 = 0x0102,
  Float4 = 0x0103, Half = 0x0200, Half2 = 0x0201, Half3 = 0x0202,
  Half4 = 0x0203, Short = 0x0600, Short2 = 0x0601, Short3 = 0x0602,
  Short4 = 0x0603, UShort = 0x0700, UShort2 = 0x0701, UShort3 = 0x0702,
  UShort4 = 0x0703, Byte = 0x0800, Byte2 = 0x0801, Byte3 = 0x0802,
  Byte4 = 0x0803, UByte = 0x0900, UByte2 = 0x0901, UByte3 = 0x0902,
  UByte4 = 0x0903, ShortN = 0x1600, Short2N = 0x1601, Short3N = 0x1602,
  Short4N = 0x1603, UShortN = 0x1700, UShort2N = 0x1701, UShort3N = 0x1702,
  UShort4N = 0x1703, ByteN = 0x1800, Byte2N = 0x1801, Byte3N = 0x1802,
  Byte4N = 0x1803, UByteN = 0x1900, UByte2N = 0x1901, UByte3N = 0x1902,
  UByte4N = 0x1903
}
 

Vertex format.

More...
enum  PixelBufferType {
  None, Texture2D, TextureCube, ColorBuffer,
  DepthBuffer
}
 

Pixel buffer type.

More...
enum  PixelBufferOption { None = 0x00, Renderable = 0x01 }
 

Pixel buffer creation option.

More...
enum  PixelFormat {
  None, Rgba, RgbaH, Rgba4444,
  Rgba5551, Rgb565, LuminanceAlpha, LuminanceAlphaH,
  Luminance, LuminanceH, Alpha, AlphaH,
  Depth16, Depth24, Depth16Stencil8, Depth24Stencil8,
  Dxt1, Dxt2, Dxt3, Dxt4,
  Dxt5
}
 

Pixel format.

More...
enum  TextureFilterMode { Nearest, Linear, Disabled }
 

Texture filter mode.

More...
enum  TextureWrapMode { ClampToEdge, Repeat }
 

Texture wrap mode.

More...
enum  TextureCubeFace {
  PositiveX, NegativeX, PositiveY, NegativeY,
  PositiveZ, NegativeZ
}
 

Cube texture surface.

More...
enum  MultiSampleMode { None, Msaa2x, Msaa4x }
 

Multi-sample mode.

More...

Detailed Description

Graphics features.


Enumeration Type Documentation

Alpha-blending function coefficient.

Enumerator:
Zero 

( 0, 0, 0, 0 )

One 

( 1, 1, 1, 1 )

SrcColor 

( Rs, Gs, Bs, As )

OneMinusSrcColor 

( 1-Rs, 1-Gs, 1-Bs, 1-As )

SrcAlpha 

( As, As, As, As )

OneMinusSrcAlpha 

( 1-As, 1-As, 1-As, 1-As )

DstColor 

( Rd, Gd, Bd, Ad )

OneMinusDstColor 

( 1-Rd, 1-Gd, 1-Bd, 1-Ad )

DstAlpha 

( Ad, Ad, Ad, Ad )

OneMinusDstAlpha 

( 1-Ad, 1-Ad, 1-Ad, 1-Ad )

SrcAlphaSaturate 

( min(As,1-Ad), min(As,1-Ad), min(As,1-Ad), 1 )

Alpha-blending function mode.

Enumerator:
Add 

Sc*Sf+Dc*Df.

Subtract 

Sc*Sf-Dc*Df.

ReverseSubtract 

Dc*Df-Sc*Sf.

enum ClearMask

Buffer clear mask.

Enumerator:
None 

None.

Color 

Color buffer.

Depth 

Depth buffer.

Stencil 

Stencil buffer.

All 

All buffers.

enum ColorMask

Color write mask.

Enumerator:
None 

None.

R 

R element.

G 

G element.

B 

B element.

A 

A element.

Rgb 

RGB elements.

Rgba 

RGBA elements.

Front direction for back-face culling.

Enumerator:
Cw 

Clock-wise.

Ccw 

Counter clock-wise.

Back-face culling mode.

Enumerator:
None 

None.

Front 

Front surface.

Back 

Back surface.

FrontAndBack 

Both front and back surfaces.

Depth test function mode.

Enumerator:
Always 

Always pass.

Never 

Always fail.

Equal 

Pass if depth value == depth buffer value.

NotEqual 

Pass if depth value != depth buffer value.

Less 

Pass if depth value < depth buffer value.

Greater 

Pass if depth value > depth buffer value.

LEqual 

Pass if depth value <= depth buffer value.

GEqual 

Pass if depth value >= depth buffer value.

enum DrawMode

Primitive rendering mode.

Enumerator:
Points 

Point list.

Lines 

Line list.

LineStrip 

Line strip.

Triangles 

Triangle list.

TriangleStrip 

Triangle strip.

TriangleFan 

Triangle fan.

enum EnableMode

Graphics feature to enable or disable.

Enumerator:
None 

None.

ScissorTest 

Scissor test.

CullFace 

Back-face culling.

Blend 

Alpha-blending.

DepthTest 

Depth test.

PolygonOffsetFill 

Polygon offset.

StencilTest 

Stencil test.

Dither 

Dithering.

All 

All features.

Multi-sample mode.

Enumerator:
None 

No multi-sample.

Msaa2x 

Multi-sample x2.

Msaa4x 

Multi-sample x4.

Pixel buffer creation option.

Enumerator:
None 

None.

Renderable 

Possible to render.

Pixel buffer type.

Enumerator:
None 

None.

Texture2D 

2D texture

TextureCube 

Cube texture.

ColorBuffer 

Color buffer.

DepthBuffer 

Depth buffer.

Pixel format.

Enumerator:
None 

None.

Rgba 

RGBA (byte)

RgbaH 

RGBA (half float)

Rgba4444 

RGBA (ushort 4:4:4:4)

Rgba5551 

RGBA (ushort 5:5:5:1)

Rgb565 

RGB (ushort 5:6:5)

LuminanceAlpha 

Luminance and alpha (byte)

LuminanceAlphaH 

Luminance and alpha (half float)

Luminance 

Luminance (byte)

LuminanceH 

Luminance (half float)

Alpha 

Alpha (byte)

AlphaH 

Alpha (half float)

Depth16 

Depth 16-bit.

Depth24 

Depth 24-bit.

Depth16Stencil8 

Depth 16-bit stencil 8-bit.

Depth24Stencil8 

Depth 24-bit stencil 8-bit.

Dxt1 

S3TC compression texture (DXT1)

Dxt2 

S3TC compression texture (DXT2)

Dxt3 

S3TC compression texture (DXT3)

Dxt4 

S3TC compression texture (DXT4)

Dxt5 

S3TC compression texture (DXT5)

Attribute variable type.

Enumerator:
None 

None.

Float 

Scalar (float)

Float2 

2D vector (float)

Float3 

3D vector (float)

Float4 

4D vector (float)

Uniform variable type.

Enumerator:
None 

None.

Float 

Scalar (float)

Float2 

2D vector (float)

Float3 

3D vector (float)

Float4 

4D vector (float)

Float2x2 

2D matrix (float)

Float3x3 

3D matrix (float)

Float4x4 

4D matrix (float)

Int 

Scalar (int)

Int2 

2D vector (int)

Int3 

3D vector (int)

Int4 

4D vector (int)

Bool 

Scalar (bool)

Bool2 

2D vector (bool)

Bool3 

3D vector (bool)

Bool4 

4D vector (bool)

Sampler2D 

2D texture sampler

SamplerCube 

Cube texture sampler.

Stencil test function mode.

Enumerator:
Always 

Always pass.

Never 

Always fail.

Equal 

Pass if the reference value == stencil buffer value.

NotEqual 

Pass if the reference value != stencil buffer value.

Less 

Pass if reference value < stencil buffer value.

Greater 

Pass if reference value > stencil buffer value.

LEqual 

Pass if reference value <= stencil buffer value.

GEqual 

Pass if reference value >= stencil buffer value.

Stencil test operation mode.

Enumerator:
Keep 

Keeps the stencil buffer value.

Zero 

Sets the stencil buffer value to 0.

Replace 

Sets the stencil buffer value to the reference value.

Invert 

Flips the stencil buffer value per bit.

Incr 

Increments the stencil buffer value (clamped)

Decr 

Decrements the stencil buffer value (clamped)

IncrWrap 

Increments the stencil buffer value (not clamped)

DecrWrap 

Decrements the stencil buffer value (not clamped)

Cube texture surface.

Enumerator:
PositiveX 

Positive direction on the X axis.

NegativeX 

Negative direction on the X axis.

PositiveY 

Positive direction on the Y axis.

NegativeY 

Negative direction on the Y axis.

PositiveZ 

Positive direction on the Z axis.

NegativeZ 

Negative direction on the Z axis.

Texture filter mode.

Enumerator:
Nearest 

Nearest mode.

Linear 

Linear mode.

Disabled 

Disabled.

Texture wrap mode.

Enumerator:
ClampToEdge 

Clamp mode.

Repeat 

Repeat mode.

Vertex format.

Enumerator:
None 

None.

Float 

Scalar (float)

Float2 

2D vector (float)

Float3 

3D vector (float)

Float4 

4D vector (float)

Half 

Scalar (half float)

Half2 

2D vector (half float)

Half3 

3D vector (half float)

Half4 

4D vector (half float)

Short 

Scalar (short)

Short2 

2D vector (short)

Short3 

3D vector (short)

Short4 

4D vector (short)

UShort 

Scalar (ushort)

UShort2 

2D vector (ushort)

UShort3 

3D vector (ushort)

UShort4 

4D vector (ushort)

Byte 

Scalar (sbyte)

Byte2 

2D vector (sbyte)

Byte3 

3D vector (sbyte)

Byte4 

4D vector (sbyte)

UByte 

Scalar (byte)

UByte2 

2D vector (byte)

UByte3 

3D vector (byte)

UByte4 

4D vector (byte)

ShortN 

Scalar (normalized short)

Short2N 

2D vector (normalized short)

Short3N 

3D vector (normalized short)

Short4N 

4D vector (normalized short)

UShortN 

Scalar (normalized ushort)

UShort2N 

2D vector (normalized ushort)

UShort3N 

3D vector (normalized ushort)

UShort4N 

4D vector (normalized ushort)

ByteN 

Scalar (normalized sbyte)

Byte2N 

2D vector (normalized sbyte)

Byte3N 

3D vector (normalized sbyte)

Byte4N 

4D vector (normalized sbyte)

UByteN 

Scalar (normalized byte)

UByte2N 

2D vector (normalized byte)

UByte3N 

3D vector (normalized byte)

UByte4N 

4D vector (normalized byte)