mirror of
https://gitlab.com/shinovon/re3-symbian.git
synced 2026-05-22 17:47:20 +03:00
Trying to get the keyboard working. The keys are already being detected correctly, but there’s still a part missing.
This commit is contained in:
parent
52d43468b3
commit
e0107274a5
2 changed files with 81 additions and 10 deletions
12
vendor/librw/src/gles1/gl1device.cpp
vendored
12
vendor/librw/src/gles1/gl1device.cpp
vendored
|
|
@ -310,7 +310,7 @@ flushGlRenderState(void)
|
|||
|
||||
void
|
||||
setAlphaBlend(bool32 enable)
|
||||
{
|
||||
{
|
||||
if(rwStateCache.blendEnable != enable){
|
||||
rwStateCache.blendEnable = enable;
|
||||
setGlRenderState(RWGL_BLEND, enable);
|
||||
|
|
@ -926,6 +926,10 @@ setWorldMatrix(Matrix *mat)
|
|||
int32
|
||||
setLights(WorldLights *lightData)
|
||||
{
|
||||
//sin luces. menos codigo
|
||||
glDisable(GL_LIGHTING);
|
||||
return 0;
|
||||
|
||||
int i, n;
|
||||
Light *l;
|
||||
int32 bits = 0;
|
||||
|
|
@ -988,9 +992,7 @@ setLights(WorldLights *lightData)
|
|||
|
||||
out:
|
||||
if(n > 0 || lightData->numAmbients > 0)
|
||||
//pruebo a ver que tal sin luz
|
||||
//glEnable(GL_LIGHTING);
|
||||
glDisable(GL_LIGHTING);
|
||||
glEnable(GL_LIGHTING);
|
||||
else
|
||||
glDisable(GL_LIGHTING);
|
||||
|
||||
|
|
@ -1017,7 +1019,6 @@ setViewMatrix(float32 *mat)
|
|||
sceneDirty = 1;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
setMaterial(const RGBA &color, const SurfaceProperties &surfaceprops, float extraSurfProp)
|
||||
{
|
||||
|
|
@ -1066,6 +1067,7 @@ flushCache(void)
|
|||
uniformStateDirty[RWGL_FOGSTART] ||
|
||||
uniformStateDirty[RWGL_FOGEND] ||
|
||||
uniformStateDirty[RWGL_FOGCOLOR]){
|
||||
glDisable(GL_FOG);
|
||||
if (rwStateCache.fogEnable) {
|
||||
glEnable(GL_FOG);
|
||||
glFogf(GL_FOG_MODE, GL_LINEAR);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue