136 lines
2.3 KiB
C++
136 lines
2.3 KiB
C++
#include "NUL_Class.h"
|
|
#include "SCENE.h"
|
|
|
|
|
|
void NUL_DI::SetFog(u32 OnOff,float NearV , float farV , u32 Color)
|
|
{
|
|
}
|
|
|
|
void NUL_DI::SetViewport(s32 X,s32 Y,s32 SX,s32 SY)
|
|
{
|
|
}
|
|
|
|
void NUL_DI::SetClipping(s32 X,s32 Y,s32 SX,s32 SY)
|
|
{
|
|
}
|
|
|
|
void NUL_DI::BeginTextureTarget(u32 TextureIndex,u32 SaveFrontBuffer)
|
|
{
|
|
}
|
|
void NUL_DI::EndTextureTarget(u32 TextureIndex,u32 bUpdateSoftBuffer)
|
|
{
|
|
}
|
|
|
|
void NUL_DI::ValidateLayer(u32 Index)
|
|
{
|
|
}
|
|
u32 NUL_DI::GetTexFreeIndex()
|
|
{
|
|
static u32 Counter = MaxOglTexture;
|
|
while (Counter--)
|
|
{
|
|
if (AllRef[Counter].OGLRef == 0xffffffff) return Counter;
|
|
}
|
|
Counter = MaxOglTexture;
|
|
while (Counter--)
|
|
{
|
|
if (AllRef[Counter].OGLRef == 0xffffffff) return Counter;
|
|
}
|
|
return -1;
|
|
}
|
|
void NUL_DI::DrawLine(u32 Color,Vector *A,Vector *B, int Lenght)
|
|
{
|
|
}
|
|
|
|
void NUL_DI::ReadFrameBuffer(s32 X,s32 Y,s32 SX,s32 SY, MAP *dest)
|
|
{
|
|
}
|
|
|
|
|
|
void NUL_DI::UpdateTexture_BM_2_HW(u32 TextureIndex, bool isDynamic)
|
|
{
|
|
};
|
|
void NUL_DI::UpdateTexture_HW_2_BM(u32 TextureIndex,u32 bUpdateSoftBuffer,s32 X, s32 Y)
|
|
{
|
|
};
|
|
|
|
|
|
void NUL_DI::SetTextureColorMode(u32 Index,u32 ColorMode)
|
|
{
|
|
}
|
|
void NUL_DI::CreateTexture(u32 IndexToCreate,u32 ColorMode)
|
|
{
|
|
}
|
|
u32 NUL_DI::CreateTexture(MAP *pExternalReferenceRGBA,u32 ColorMode, bool forceCreation)
|
|
{
|
|
u32 Index = GetTexFreeIndex();
|
|
if (Index == -1) return -1;
|
|
AllRef[Index].pExtRef = pExternalReferenceRGBA;
|
|
|
|
if (forceCreation)
|
|
{
|
|
CreateTexture(Index,ColorMode);
|
|
} else
|
|
{
|
|
AllRef[Index].CacheCounter = 5001;
|
|
AllRef[Index].OGLRef = -2;
|
|
}
|
|
return Index;
|
|
}
|
|
u32 NUL_DI::CreateLayerTexture(MAP *pExternalReferenceRGBA,u32 LayerIndex)
|
|
{
|
|
return 0;
|
|
}
|
|
void NUL_DI::DestroyLayerTexture(u32 TextureIndex)
|
|
{
|
|
if ((TextureIndex != -1) && (AllRef[TextureIndex].OGLRef != -1))
|
|
{
|
|
AllRef[TextureIndex].OGLRef = -1;
|
|
AllRef[TextureIndex].LastHash = -1;
|
|
// AllRef[TextureIndex].pExtRef = NULL;
|
|
}
|
|
|
|
};
|
|
void NUL_DI::DestroyTexture(u32 TextureIndex)
|
|
{
|
|
};
|
|
|
|
void NUL_DI::Setexture(u32 TextureIndex,float *UVMatrix)
|
|
{
|
|
}
|
|
|
|
void NUL_DI::Perspective(float f)
|
|
{
|
|
}
|
|
|
|
void NUL_DI::Holographic(Vector *pUP,float wx)
|
|
{
|
|
}
|
|
void NUL_DI::Ortho() // PIXEL mode ortho (ex Draw point 10,10 mean pixel 10,10)
|
|
{
|
|
}
|
|
|
|
void NUL_DI::Clear(u32 Color)
|
|
{
|
|
};
|
|
|
|
void NUL_DI::ClearZ()
|
|
{
|
|
};
|
|
|
|
|
|
void NUL_DI::Matrix(MATRIX *MatrixToSet)
|
|
{
|
|
}
|
|
|
|
void NUL_DI::SetRS(RS *RM1,u32 TextureIndex)
|
|
{
|
|
}
|
|
|
|
void NUL_DI::GetMatrix(u32 Mode,float *pDest)
|
|
{
|
|
}
|
|
void NUL_DI::SetMatrix(u32 Mode,float *pDest)
|
|
{
|
|
}
|
|
|