mirror of
https://gitlab.com/shinovon/re3-symbian.git
synced 2026-05-22 17:47:20 +03:00
Some stats
This commit is contained in:
parent
1209902fe9
commit
7e7188abbd
6 changed files with 54 additions and 0 deletions
3
vendor/librw/src/gl/gl3matfx.cpp
vendored
3
vendor/librw/src/gl/gl3matfx.cpp
vendored
|
|
@ -149,9 +149,12 @@ matfxEnvRender(InstanceDataHeader *header, InstanceData *inst, int32 vsBits, uin
|
|||
rw::SetRenderState(SRCBLEND, BLENDSRCALPHA);
|
||||
}
|
||||
|
||||
extern "C" int matfx;
|
||||
|
||||
void
|
||||
matfxRenderCB(Atomic *atomic, InstanceDataHeader *header)
|
||||
{
|
||||
matfx++;
|
||||
uint32 flags = atomic->geometry->flags;
|
||||
setWorldMatrix(atomic->getFrame()->getLTM());
|
||||
int32 vsBits = lightingCB(atomic);
|
||||
|
|
|
|||
3
vendor/librw/src/gl/gl3pipe.cpp
vendored
3
vendor/librw/src/gl/gl3pipe.cpp
vendored
|
|
@ -167,6 +167,8 @@ ObjPipeline::create(void)
|
|||
return pipe;
|
||||
}
|
||||
|
||||
extern "C" int vboUploads;
|
||||
|
||||
void
|
||||
defaultInstanceCB(Geometry *geo, InstanceDataHeader *header, bool32 reinstance)
|
||||
{
|
||||
|
|
@ -303,6 +305,7 @@ defaultInstanceCB(Geometry *geo, InstanceDataHeader *header, bool32 reinstance)
|
|||
glBindBuffer(GL_ARRAY_BUFFER, header->vbo);
|
||||
glBufferData(GL_ARRAY_BUFFER, header->totalNumVertex*attribs[0].stride,
|
||||
header->vertexBuffer, GL_STATIC_DRAW);
|
||||
vboUploads++;
|
||||
#ifdef RW_GL_USE_VAOS
|
||||
setAttribPointers(header->attribDesc, header->numAttribs);
|
||||
glBindVertexArray(0);
|
||||
|
|
|
|||
5
vendor/librw/src/gl/gl3render.cpp
vendored
5
vendor/librw/src/gl/gl3render.cpp
vendored
|
|
@ -21,9 +21,13 @@ namespace gl3 {
|
|||
|
||||
#define MAX_LIGHTS
|
||||
|
||||
extern "C" int draw;
|
||||
extern "C" int render;
|
||||
|
||||
void
|
||||
drawInst_simple(InstanceDataHeader *header, InstanceData *inst)
|
||||
{
|
||||
draw++;
|
||||
flushCache();
|
||||
glDrawElements(header->primType, inst->numIndex,
|
||||
GL_UNSIGNED_SHORT, ((uint8*) header->indexBuffer) + inst->offset);
|
||||
|
|
@ -133,6 +137,7 @@ lightingCB(Atomic *atomic)
|
|||
void
|
||||
defaultRenderCB(Atomic *atomic, InstanceDataHeader *header)
|
||||
{
|
||||
render++;
|
||||
Material *m;
|
||||
|
||||
uint32 flags = atomic->geometry->flags;
|
||||
|
|
|
|||
3
vendor/librw/src/gl/gl3skin.cpp
vendored
3
vendor/librw/src/gl/gl3skin.cpp
vendored
|
|
@ -246,9 +246,12 @@ uploadSkinMatrices(Atomic *a)
|
|||
setUniform(u_boneMatrices, skinMatrices);
|
||||
}
|
||||
|
||||
extern "C" int skin;
|
||||
|
||||
void
|
||||
skinRenderCB(Atomic *atomic, InstanceDataHeader *header)
|
||||
{
|
||||
skin++;
|
||||
Material *m;
|
||||
|
||||
uint32 flags = atomic->geometry->flags;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue