The attached C code snippet only works as indicated
scale = 1/2; does not work
scale =(float) 1/2; works
glScalef(scale, scale, scale);
The variable "scale " is of type float, the
glScalef(scale, scale, scale);
OpenGL function expects floats. When it fails the app runs , but OpenGL just ignores the
glScalef(scale, scale, scale);
function.
Is this too simple case for a C
Automatic Type Conversion
to do its job?
That is what I am asking about.
I am not concerned that the definition
scale = 1/2; does not work
What I have tried:
Asked Mrs Google about
Automatic Type Conversion
, do not need any more RTFM references.