mirror of
https://github.com/halpz/re3.git
synced 2025-06-27 11:26:17 +00:00
updated librw
This commit is contained in:
@ -429,8 +429,7 @@ void RwIm3DVertexSetU(RwIm3DVertex *vert, RwReal u) { vert->setU(u); }
|
||||
void RwIm3DVertexSetV(RwIm3DVertex *vert, RwReal v) { vert->setV(v); }
|
||||
void RwIm3DVertexSetRGBA(RwIm3DVertex *vert, RwUInt8 r, RwUInt8 g, RwUInt8 b, RwUInt8 a) { vert->setColor(r, g, b, a); }
|
||||
|
||||
// WARNING: ignoring flags
|
||||
void *RwIm3DTransform(RwIm3DVertex *pVerts, RwUInt32 numVerts, RwMatrix *ltm, RwUInt32 flags) { im3d::Transform(pVerts, numVerts, ltm); return pVerts; }
|
||||
void *RwIm3DTransform(RwIm3DVertex *pVerts, RwUInt32 numVerts, RwMatrix *ltm, RwUInt32 flags) { im3d::Transform(pVerts, numVerts, ltm, flags); return pVerts; }
|
||||
RwBool RwIm3DEnd(void) { im3d::End(); return true; }
|
||||
RwBool RwIm3DRenderLine(RwInt32 vert1, RwInt32 vert2) {
|
||||
RwImVertexIndex indices[2];
|
||||
|
@ -20,11 +20,11 @@ typedef RwUInt16 RwImVertexIndex;
|
||||
|
||||
enum RwIm3DTransformFlags
|
||||
{
|
||||
rwIM3D_VERTEXUV = 1,
|
||||
rwIM3D_ALLOPAQUE = 2,
|
||||
rwIM3D_NOCLIP = 4,
|
||||
rwIM3D_VERTEXXYZ = 8,
|
||||
rwIM3D_VERTEXRGBA = 16,
|
||||
rwIM3D_VERTEXUV = rw::im3d::VERTEXUV,
|
||||
rwIM3D_ALLOPAQUE = rw::im3d::ALLOPAQUE,
|
||||
rwIM3D_NOCLIP = rw::im3d::NOCLIP,
|
||||
rwIM3D_VERTEXXYZ = rw::im3d::VERTEXXYZ,
|
||||
rwIM3D_VERTEXRGBA = rw::im3d::VERTEXRGBA,
|
||||
};
|
||||
|
||||
void RwIm2DVertexSetCameraX(RwIm2DVertex *vert, RwReal camx);
|
||||
|
@ -60,6 +60,8 @@ CLines::RenderLineWithClipping(float x1, float y1, float z1, float x2, float y2,
|
||||
col2.green = c2>>16;
|
||||
col2.blue = c2>>8;
|
||||
col2.alpha = c2;
|
||||
// HACK HACK until i got im3d fixed
|
||||
RwRenderStateSet(rwRENDERSTATETEXTURERASTER, nil);
|
||||
|
||||
RwIm3DVertexSetRGBA(&v[0], col1.red, col1.green, col1.blue, col1.alpha);
|
||||
RwIm3DVertexSetRGBA(&v[1], col2.red, col2.green, col2.blue, col2.alpha);
|
||||
|
@ -1884,13 +1884,11 @@ WinMain(HINSTANCE instance,
|
||||
StaticPatcher::Apply();
|
||||
SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, nil, SPIF_SENDCHANGE);
|
||||
|
||||
/*
|
||||
// TODO: make this an option somewhere
|
||||
AllocConsole();
|
||||
freopen("CONIN$", "r", stdin);
|
||||
freopen("CONOUT$", "w", stdout);
|
||||
freopen("CONOUT$", "w", stderr);
|
||||
*/
|
||||
|
||||
/*
|
||||
* Initialize the platform independent data.
|
||||
|
Reference in New Issue
Block a user