Skip to main content
gamedev.net
🔒 Locked

scaling problem

Started by utr0cks 1 reply 650+ views
Original Post
utr0cks
utr0cks
I am trying to scale a textured quad. it works fine when i try to scale it to be larger like so... glScalef(2,2,1); drawTexturedQuad(); but, if i scale it to be smaller, nothing shows up... glScalef(0.5,0.5,1); drawTexturedQuad(); any ideas why this might be? thanks a lot.
Kaezin
Kaezin
The only thing I could think of (I''m still learning OpenGL) is that for some reason the 0.5 is being converted to the int 0, resulting in no object. I would try doing something like glScalef(1.0f/2.0f,1,1) but that''s just me and I have the feeling that won''t fix it
Half the people you know are below average.Trogdor the Burninator
utr0cks
utr0cks
yea, that was it.
stupid mistake, i declared my width variable as an int

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.