glClearColor bug ??

16 views
Skip to first unread message

Fuad Omari

unread,
Mar 1, 2023, 12:12:27 PM3/1/23
to The Ring Programming Language

it seems glClearColor(red,green,blue,alpha) does not accept fractional colors , it works only with 0 or 1
as an example
glClearColor(0.9,0.6, 0.0, 1.0) color the background with black instead with brownish
glClearColor(0 , 1, 0.0, 1.0) color the background  with green
while
glColor3f(0.9,0.6,0)
glutSolidSphere(1,20,20)
color the sphere with brownish
so we can't adjust the background with the same color of the sphere

glClearColor.ring

Mahmoud Fayed

unread,
Mar 2, 2023, 12:48:52 PM3/2/23
to The Ring Programming Language
Hello

I Will check this, For now you can modify the extension by updating the next line

Replace GLclampf with float
Then build the extension (Run the next batch file)

Greetings,
Mahmoud

Mahmoud Fayed

unread,
Mar 2, 2023, 12:49:42 PM3/2/23
to The Ring Programming Language
Hello

Before building the extension

Greetings,
Mahmoud
Reply all
Reply to author
Forward
0 new messages