mirror of
https://github.com/XProger/OpenLara.git
synced 2025-01-17 21:09:00 +01:00
remove tabs
This commit is contained in:
parent
59abd003a1
commit
7e8124778d
@ -206,8 +206,8 @@ namespace Debug {
|
||||
vec4 p = Core::mViewProj * vec4(pos, 1);
|
||||
if (p.w > 0) {
|
||||
p.xyz() = p.xyz() * (1.0f / p.w);
|
||||
p.y = -p.y;
|
||||
p.xyz() = (p.xyz() * 0.5f + vec3(0.5f)) * vec3(float(Core::width), float(Core::height), 1.0f);
|
||||
p.y = -p.y;
|
||||
p.xyz() = (p.xyz() * 0.5f + vec3(0.5f)) * vec3(float(Core::width), float(Core::height), 1.0f);
|
||||
text(vec2(p.x, p.y), color, str);
|
||||
}
|
||||
}
|
||||
|
@ -137,7 +137,7 @@ namespace GAPI {
|
||||
bool rebind;
|
||||
|
||||
void init(Pass pass, int type, int *def, int defCount) {
|
||||
shaderProgramInit(&program);
|
||||
shaderProgramInit(&program);
|
||||
|
||||
DVLB_s* src = NULL;
|
||||
|
||||
|
@ -507,7 +507,7 @@ namespace GAPI {
|
||||
case passShadow :
|
||||
switch (type) {
|
||||
case 3 :
|
||||
case 4 : vSrc = SHADER ( shadow_entity, v ); fSrc = SHADER ( shadow_entity, f ); break;
|
||||
case 4 : vSrc = SHADER ( shadow_entity, v ); fSrc = SHADER ( shadow_entity, f ); break;
|
||||
default : ASSERT(false);
|
||||
}
|
||||
break;
|
||||
@ -540,12 +540,12 @@ namespace GAPI {
|
||||
}
|
||||
break;
|
||||
case passGUI : vSrc = SHADER ( gui, v ); fSrc = SHADER ( gui, f ); break;
|
||||
case passSky : vSrc = SHADER ( gui, v ); fSrc = SHADER ( gui, f ); break;
|
||||
case passSky : vSrc = SHADER ( gui, v ); fSrc = SHADER ( gui, f ); break;
|
||||
case PASS_CLEAR : vSrc = SHADER ( clear, v ); fSrc = SHADER ( clear, f ); break;
|
||||
default : ASSERT(false); LOG("! wrong pass id\n"); return;
|
||||
}
|
||||
|
||||
LOG(" %s", vSrc != NULL ? "true" : "false");
|
||||
LOG(" %s", vSrc != NULL ? "true" : "false");
|
||||
|
||||
#undef SHADER_A
|
||||
#undef SHADER_U
|
||||
@ -603,7 +603,7 @@ namespace GAPI {
|
||||
|
||||
colorMask = blendMode = -1;
|
||||
|
||||
LOG("done\n");
|
||||
LOG("done\n");
|
||||
}
|
||||
|
||||
void deinit() {
|
||||
|
@ -59,8 +59,8 @@ namespace NAPI {
|
||||
void init() {
|
||||
sock = INVALID_SOCKET;
|
||||
|
||||
WSAData wData;
|
||||
WSAStartup(0x0101, &wData);
|
||||
WSAData wData;
|
||||
WSAStartup(0x0101, &wData);
|
||||
}
|
||||
|
||||
void deinit() {
|
||||
|
@ -1063,15 +1063,15 @@ struct Basis {
|
||||
w = 1.0f;
|
||||
}
|
||||
|
||||
Basis operator * (const Basis &basis) const {
|
||||
Basis operator * (const Basis &basis) const {
|
||||
return Basis(rot * basis.rot, pos + rot * basis.pos);
|
||||
}
|
||||
|
||||
vec3 operator * (const vec3 &v) const {
|
||||
vec3 operator * (const vec3 &v) const {
|
||||
return rot * v + pos;
|
||||
}
|
||||
|
||||
Basis inverse() const {
|
||||
Basis inverse() const {
|
||||
quat q = rot.conjugate();
|
||||
return Basis(q, -(q * pos));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user