I'd give you a pointer... but I think you have too many already...
* in a definition means that its a pointer.
* outside of a definition dereferences it so the term refers to the value the pointer points to rather than the pointer itself.
-> also dereferences the pointer, while '.' can only be used on non-pointer types (or structs that were already dereferenced from a pointer...).
returning large structs is considered bad practise because a) it is slower. b) different compilers implement it differently, resulting in compatibility issues.
AllocBlock is the allocation part of glquake's lightmap atlasing. its a texel offset, and used when the engine repaints a surface's lightmap due to dynamic lights or lightstyle changes. as well as to work out the lm texcoords.
if you have no atlasing then logically light_s,light_t would always be 0,0
* in a definition means that its a pointer.
* outside of a definition dereferences it so the term refers to the value the pointer points to rather than the pointer itself.
-> also dereferences the pointer, while '.' can only be used on non-pointer types (or structs that were already dereferenced from a pointer...).
returning large structs is considered bad practise because a) it is slower. b) different compilers implement it differently, resulting in compatibility issues.
AllocBlock is the allocation part of glquake's lightmap atlasing. its a texel offset, and used when the engine repaints a surface's lightmap due to dynamic lights or lightstyle changes. as well as to work out the lm texcoords.
if you have no atlasing then logically light_s,light_t would always be 0,0
Comment