Original Post
🔒 Locked
Function
Advertisement
wait, did you mean a function where you only specify a single color, or a single variable that contains all 3 colors? if it''s the latter, shove an "v" on the end of the function name and pass the address of the first element in the group. example:
struct COLOR
{
float R, G, B;
};
COLOR MyColor;
glColor3f (&MyColor.R);
this applies to most polygon functions - tex co-ords, colors, normals, vertex pos, etc.
MENTAL
struct COLOR
{
float R, G, B;
};
COLOR MyColor;
glColor3f (&MyColor.R);
this applies to most polygon functions - tex co-ords, colors, normals, vertex pos, etc.
MENTAL
Neophyte, that won''t work. You should have done this:
Otherwise r, g, and b all access the same memory.
[Resist Windows XP''s Invasive Production Activation Technology!]
|
Otherwise r, g, and b all access the same memory.
[Resist Windows XP''s Invasive Production Activation Technology!]
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement