BGE internal cosmetic changes - Replacing hardcoded values with new defines
--------------------------------------------------------------------------- The Rasterizer code was relying in the values defined on TF_ DNA files. I'm working in the recode of TexFace, bringing the options to the material panel and ran into those cases. They are hard to spot and add a lot of the "magic" effect to the code. Hardcoded values are at least easy to spot. We (still) have a few defines duplicated, relying on each other (a flag previously defined in the code is checked later on but using a different define (although with same value. (e.g. TF_BMFONT and RAS_RENDER_3DPOLYGON_TEXT). It's hell =) I'm adding some comments to help on that. Things will be revamped anyways, but it's nice to keep the code a bit more coherent before the real feature commit. That's all, thanks for listening.
This commit is contained in:
@@ -71,7 +71,7 @@ public:
|
||||
/**
|
||||
*/
|
||||
enum {
|
||||
RAS_RENDER_3DPOLYGON_TEXT = 16384
|
||||
RAS_RENDER_3DPOLYGON_TEXT = 16384 /* TF_BMFONT */
|
||||
};
|
||||
/**
|
||||
* Drawing types
|
||||
@@ -106,7 +106,9 @@ public:
|
||||
/**
|
||||
*/
|
||||
enum {
|
||||
KX_TWOSIDE = 512,
|
||||
KX_TEX = 4, /* TF_TEX */
|
||||
KX_LIGHT = 16, /* TF_LIGHT */
|
||||
KX_TWOSIDE = 512, /* TF_TWOSIDE */
|
||||
KX_LINES = 32768
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user