diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-07-29 13:21:33 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-07-29 13:21:33 +0000 |
| commit | e6c4db94d81306fda59b8fb32ae07fb3f0c8bf08 (patch) | |
| tree | d5f713cb83ea7e56223460df06531269d1a26684 /src/engine/client/gfx.cpp | |
| parent | 25c0ffb4f4b34758a4dddb7ff4a1cada1bb07136 (diff) | |
| download | zcatch-e6c4db94d81306fda59b8fb32ae07fb3f0c8bf08.tar.gz zcatch-e6c4db94d81306fda59b8fb32ae07fb3f0c8bf08.zip | |
fixed some problems with the snapshot handling. added fps meter. fixed error when connecting to several servers
Diffstat (limited to 'src/engine/client/gfx.cpp')
| -rw-r--r-- | src/engine/client/gfx.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/engine/client/gfx.cpp b/src/engine/client/gfx.cpp index 7b0b421e..76326487 100644 --- a/src/engine/client/gfx.cpp +++ b/src/engine/client/gfx.cpp @@ -111,6 +111,13 @@ struct batch int num; }; +void gfx_destoy_batch(void *in_b) +{ + batch *b = (batch*)in_b; + delete b; + +} + void gfx_quads_draw_batch(void *in_b) { batch *b = (batch*)in_b; @@ -152,6 +159,7 @@ void *gfx_quads_create_batch() batch *b = new batch; b->num = num_vertices; b->vb.data(vertices, num_vertices*sizeof(custom_vertex), GL_STATIC_DRAW); + dbg_msg("gfx", "created batch. num=%d size=%d", num_vertices, num_vertices*sizeof(custom_vertex)); num_vertices = 0; gfx_quads_end(); return b; |