Results 1 to 3 of 3

Thread: GL_TEXTURE_CROP_RECT_OES parameters

  1. #1

    GL_TEXTURE_CROP_RECT_OES parameters

    Does anyone know the order / meaning of the 4 integers passed via GL_'TEXTURE_CROP_RECT_OES?

    I've tried to find the information in the OES_draw_texture extension documentation, but they don't specify what the four integers actually do. Do we have to evaluate them as left/right/top/bottom? Or left/top/width/height?

    The documentation also does not specify if the current texture crop rectangle is queryable via glGetTexParameteriv and how the default values after texture creation are defined.

    At last, how exactly are out of bound texture crop rectangles treated? Should an implementation use the current wrap mode or clamp the parameters to the texture baselevel size?

    Best regards,
    Nils Pipenbrinck

  2. #2
    Senior Member
    Join Date
    May 2006
    Posts
    353
    The crop rectangle is given as Ucr, Vcr, Wcr, Hcr. That is, "left"/"bottom"/width/height, although you can also have negative width and height to flip the image.

    The crop rectangle is queriable, and the initial values are 0, 0, 0, 0 (this is in the spec). Texturing is performed using the current wrap and filter modes.
    Georg Kolling, Imagination Technologies
    Please ask questions specific to PowerVR hardware or SDKs on the PowerVR Insider Forum
    DevTech@imgtec.com | http://www.powervrinsider.com

  3. #3
    Thanks a lot!

Similar Threads

  1. ML Image Parameters
    By ehsan2004 in forum OpenML Coding & Technical Issues
    Replies: 2
    Last Post: 04-19-2005, 06:29 PM
  2. ML Audio Parameters
    By ehsan2004 in forum OpenML Coding & Technical Issues
    Replies: 1
    Last Post: 07-24-2004, 06:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •