ctk-private

## ctk-private ctk-private |

## Synopsis

    #define             CTK_PARAM_READWRITE
    enum                CtkCapability;
    enum                CtkOpenGLVersion;
    enum                CtkGLSLVersion;
    gboolean            ctk_has_capability                  (CtkCapability capability);
    gboolean            ctk_has_opengl_version              (CtkOpenGLVersion version);
    gboolean            ctk_has_glsl_version                (CtkGLSLVersion version);
    gboolean            ctk_glsl_shaders_compiled_and_ready ();
    gboolean            ctk_asm_shaders_compiled_and_ready  ();

## Description

## Details

### CTK_PARAM_READWRITE

    #define             CTK_PARAM_READWRITE

### enum CtkCapability

    typedef enum
    {
      CTK_CAPABILITY_FBO=0,
      CTK_CAPABILITY_GLSL,
      CTK_CAPABILITY_SHADER_OBJECTS,
      CTK_CAPABILITY_VERTEX_SHADER,
      CTK_CAPABILITY_FRAGMENT_SHADER,
      CTK_CAPABILITY_VERTEX_PROGRAM,
      CTK_CAPABILITY_FRAGMENT_PROGRAM,
      CTK_CAPABILITY_NON_POWER_OF_TWO_TEXTURE,
      CTK_CAPABILITY_TEXTURE_RECTANGLE,
    } CtkCapability;

Capabilities checked by ctk_init

`CTK_CAPABILITY_FBO` | GPU has FBO support
`CTK_CAPABILITY_GLSL` | GPU has GLSL support
`CTK_CAPABILITY_SHADER_OBJECTS` |
`CTK_CAPABILITY_VERTEX_SHADER` |
`CTK_CAPABILITY_FRAGMENT_SHADER` |
`CTK_CAPABILITY_VERTEX_PROGRAM` |
`CTK_CAPABILITY_FRAGMENT_PROGRAM` |
`CTK_CAPABILITY_NON_POWER_OF_TWO_TEXTURE` |
`CTK_CAPABILITY_TEXTURE_RECTANGLE` |

### enum CtkOpenGLVersion

    typedef enum
    {
      CTK_OPENGL_1_1=0,
      CTK_OPENGL_1_2,
      CTK_OPENGL_1_3,
      CTK_OPENGL_1_4,
      CTK_OPENGL_1_5,
      CTK_OPENGL_2_0,
      CTK_OPENGL_2_1,
      CTK_OPENGL_3_0,
      CTK_OPENGL_3_1,
      CTK_OPENGL_3_2,
    } CtkOpenGLVersion;

OpenGL version supported by the GPU

### enum CtkGLSLVersion

    typedef enum
    {
      CTK_GLSL_1_10=0,
      CTK_GLSL_1_20,
      CTK_GLSL_1_30,
      CTK_GLSL_1_40,
    } CtkGLSLVersion;

GLSL version supported by the GPU

### ctk_has_capability ()

    gboolean            ctk_has_capability                  (CtkCapability capability);

`capability` : |
Returns : |

### ctk_has_opengl_version ()

    gboolean            ctk_has_opengl_version              (CtkOpenGLVersion version);

`version` : |
Returns : |

### ctk_has_glsl_version ()

    gboolean            ctk_has_glsl_version                (CtkGLSLVersion version);

`version` : |
Returns : |

### ctk_glsl_shaders_compiled_and_ready ()

    gboolean            ctk_glsl_shaders_compiled_and_ready ();

Returns : |

### ctk_asm_shaders_compiled_and_ready ()

    gboolean            ctk_asm_shaders_compiled_and_ready  ();

Returns : |