• MDW
  • Order of the Butterfly
    Order of the Butterfly
    MDW
    Posts: 451 from 2003/7/25
    From: Wroclaw/Poland
    Quote:

    jacadcaps wrote:
    I think you need to be a bit more specific. Got sample code to illustrate the issue?


    OpenGL offers four kind of texture wrapping:
    1. GL_REPEAT,
    2. GL_MIRRORED_REPEAT,
    3. GL_CLAMP_TO_EDGE (also known as GL_CLAMP),
    4. GL_CLAMP_TO_BORDER.

    Differences of these methods of wrapping are very well visualised there (in chapter “Texture Wrapping”):
    https://learnopengl.com/Getting-started/Textures

    TinyGL in MorphOS allows to use only methods 1 and 3 (code with GL_MIRRORED_REPEAT or GL_CLAMP_TO_BORDER can't be compiled in SDK because gl.h of TinyGL doesn't contain these defines).
    I would like to know if reason no support GL_MIRRORED_REPEAT is in hardware or software (implementation of TinyGL). And if is any chance for add support of GL_MIRRORED_REPEAT.

    If there are not chance for GL_MIRRORED_REPEAT in TinyGL, it won’t very big problem for me. I will modify a bit my code+textures for use GL_REPEAT instead ofGL_MIRRORED_REPEAT in one place in project. And I will avoid using GL_MIRRORED_REPEAT and GL_CLAMP_TO_BORDER.
  • »10.11.19 - 11:52
    Profile Visit Website