Ok I want to add some sort of flag like variable to one of my classes and had some questions about going about doing it. After looking at some source that uses it I noticed some stuff like this.
TEXTUREFLAGS_POINTSAMPLE = 0x00000001,
TEXTUREFLAGS_TRILINEAR = 0x00000010,
Does the way this work is by combining all the flags into one int? so like if I had both of these like TEXTUREFLAGS_POINTSAMPLE | TEXTUREFLAGS_TRILINEAR it would be the value 0x00000011?
So do I need to offset the bytes like this or am I good to just use straight ints? Like:
TEXTUREFLAGS_POINTSAMPLE = 1;
TEXTUREFLAGS_TRILINEAR = 2;