zydgyy
08-15-2012, 05:11 AM
Can i use it make my rectangle (http://www.opengl.org/search?q=rectangle&keyfrom=E2Ctranslation) round corner??
V-man
08-15-2012, 06:20 PM
If you want to make a rectangle with rounded corners, apply a RGBA8 texture to your quad and use blending.
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
Wherever alpha is 0, it will look totally transparent and wherever it is 255, it will look totally opaque.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.