Sha256: c6bccf73e43077edf8d266ea4435d413f7988568796b0c2cb86c370f67f1b1be

Contents?: true

Size: 1.67 KB

Versions: 17

Compression:

Stored size: 1.67 KB

Contents

module Mittsu
  GL_MITTSU_PARAMS = {
    RepeatWrapping => GL_REPEAT,
    ClampToEdgeWrapping => GL_CLAMP_TO_EDGE,
    MirroredRepeatWrapping => GL_MIRRORED_REPEAT,

    NearestFilter => GL_NEAREST,
    NearestMipMapNearestFilter => GL_NEAREST_MIPMAP_NEAREST,
    NearestMipMapLinearFilter => GL_NEAREST_MIPMAP_LINEAR,

    LinearFilter => GL_LINEAR,
    LinearMipMapNearestFilter => GL_LINEAR_MIPMAP_NEAREST,
    LinearMipMapLinearFilter => GL_LINEAR_MIPMAP_LINEAR,

    UnsignedByteType => GL_UNSIGNED_BYTE,
    UnsignedShort4444Type => GL_UNSIGNED_SHORT_4_4_4_4,
    UnsignedShort5551Type => GL_UNSIGNED_SHORT_5_5_5_1,
    UnsignedShort565Type => GL_UNSIGNED_SHORT_5_6_5,

    ByteType => GL_BYTE,
    ShortType => GL_SHORT,
    UnsignedShortType => GL_UNSIGNED_SHORT,
    IntType => GL_INT,
    UnsignedIntType => GL_UNSIGNED_INT,
    FloatType => GL_FLOAT,

    AlphaFormat => GL_ALPHA,
    RGBFormat => GL_RGB,
    RGBAFormat => GL_RGBA,
    LuminanceFormat => GL_LUMINANCE,
    LuminanceAlphaFormat => GL_LUMINANCE_ALPHA,

    AddEquation => GL_FUNC_ADD,
    SubtractEquation => GL_FUNC_SUBTRACT,
    ReverseSubtractEquation => GL_FUNC_REVERSE_SUBTRACT,

    ZeroFactor => GL_ZERO,
    OneFactor => GL_ONE,
    SrcColorFactor => GL_SRC_COLOR,
    OneMinusSrcColorFactor => GL_ONE_MINUS_SRC_COLOR,
    SrcAlphaFactor => GL_SRC_ALPHA,
    OneMinusSrcAlphaFactor => GL_ONE_MINUS_SRC_ALPHA,
    DstAlphaFactor => GL_DST_ALPHA,
    OneMinusDstAlphaFactor => GL_ONE_MINUS_DST_ALPHA,

    DstColorFactor => GL_DST_COLOR,
    OneMinusDstColorFactor => GL_ONE_MINUS_DST_COLOR,
    SrcAlphaSaturateFactor => GL_SRC_ALPHA_SATURATE

    # TODO: populate with extension parameters?
  }
  GL_MITTSU_PARAMS.default = 0
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
mittsu-0.4.1 lib/mittsu/renderers/opengl/opengl_mittsu_params.rb
mittsu-0.4.0 lib/mittsu/renderers/opengl/opengl_mittsu_params.rb
mittsu-0.3.3 lib/mittsu/renderers/opengl/opengl_mittsu_params.rb
mittsu-0.3.2 lib/mittsu/renderers/opengl/opengl_mittsu_params.rb
mittsu-0.3.1 lib/mittsu/renderers/opengl/opengl_mittsu_params.rb
mittsu-0.3.0 lib/mittsu/renderers/opengl/opengl_mittsu_params.rb
mittsu-0.2.4 lib/mittsu/renderers/opengl/opengl_mittsu_params.rb
mittsu-0.2.3 lib/mittsu/renderers/opengl/opengl_mittsu_params.rb
mittsu-0.2.2 lib/mittsu/renderers/opengl/opengl_mittsu_params.rb
mittsu-0.2.1 lib/mittsu/renderers/opengl/opengl_mittsu_params.rb
mittsu-0.2.0 lib/mittsu/renderers/opengl/opengl_mittsu_params.rb
mittsu-0.1.7 lib/mittsu/renderers/opengl/opengl_mittsu_params.rb
mittsu-0.1.6 lib/mittsu/renderers/opengl/opengl_mittsu_params.rb
mittsu-0.1.5 lib/mittsu/renderers/opengl/opengl_mittsu_params.rb
mittsu-0.1.4 lib/mittsu/renderers/opengl/opengl_mittsu_params.rb
mittsu-0.1.3 lib/mittsu/renderers/opengl/opengl_mittsu_params.rb
mittsu-0.1.2 lib/mittsu/renderers/opengl/opengl_mittsu_params.rb