mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-11-26 23:00:30 +00:00
CPolyLine::SetSemiTransparent
This commit is contained in:
parent
90cd6664cf
commit
cd7a41b6f5
19
bit2.cpp
19
bit2.cpp
@ -24,6 +24,17 @@ void CGLine::SetRGB1(unsigned char a2, unsigned char a3, unsigned char a4)
|
||||
this->field_40 = a2 | (a4 << 16) | (a3 << 8);
|
||||
}
|
||||
|
||||
// @NotOk
|
||||
// figure out what the ptr is
|
||||
void CPolyLine::SetSemiTransparent(void)
|
||||
{
|
||||
for (int i = 0; i < this->field_40; i++)
|
||||
{
|
||||
unsigned char * ptr = reinterpret_cast<unsigned char*>(this->field_44);
|
||||
ptr[0x10*i] |= 2;
|
||||
}
|
||||
}
|
||||
|
||||
void validate_CGPolyLine(void){
|
||||
VALIDATE_SIZE(CGPolyLine, 0x58);
|
||||
|
||||
@ -51,3 +62,11 @@ void validate_CGLine(void)
|
||||
VALIDATE(CGLine, field_54, 0x54);
|
||||
VALIDATE(CGLine, field_58, 0x58);
|
||||
}
|
||||
|
||||
void validate_CPolyLine(void)
|
||||
{
|
||||
VALIDATE_SIZE(CPolyLine, 0x48);
|
||||
|
||||
VALIDATE(CPolyLine, field_40, 0x40);
|
||||
VALIDATE(CPolyLine, field_44, 0x44);
|
||||
}
|
||||
|
11
bit2.h
11
bit2.h
@ -41,7 +41,18 @@ class CGLine : public CBit
|
||||
int field_58;
|
||||
};
|
||||
|
||||
class CPolyLine : public CBit
|
||||
{
|
||||
public:
|
||||
EXPORT void SetSemiTransparent(void);
|
||||
unsigned char topPad;
|
||||
|
||||
int field_40;
|
||||
int field_44;
|
||||
};
|
||||
|
||||
void validate_CGPolyLine(void);
|
||||
void validate_CPolyLine(void);
|
||||
void validate_CGLine(void);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user