Texture wrapping in TinyGL (MorphOS 3.12)
  • MDW
  • Order of the Butterfly
    Order of the Butterfly
    MDW
    Posts: 460 from 2003/7/26
    From: Wroclaw/Poland
    I am not able to use GL_MIRRORED_REPEAT and GL_CLAMP_TO_BORDER in TinyGL (MorphOS 3.12).
    Does anyone know if next versions of TinyGL will support these texture wrapping methods? Is any chance or I should avoid the feature?
  • »09.11.19 - 20:07
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Posts: 3031 from 2003/3/5
    From: Canada
    I think you need to be a bit more specific. Got sample code to illustrate the issue?
  • »10.11.19 - 11:08
    Profile Visit Website
  • MDW
  • Order of the Butterfly
    Order of the Butterfly
    MDW
    Posts: 460 from 2003/7/26
    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 - 12:52
    Profile Visit Website