![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| unsigned int | rt_freemem (void *) |
| void * | rt_getmem (unsigned int) |
| int | rt_meminuse (void) |
| void | rt_sleep (int) |
| void | rtbomb (const char *) |
| void | rtmesg (const char *) |
| void | timerstart (void) |
| void | timerstop (void) |
| flt | timertime (void) |
| unsigned int rt_freemem | ( | void * | ) |
Definition at line 181 of file util.cpp.
References rt_mem_in_use.
Referenced by DeallocateImage(), and trace_shm().
{
unsigned int bytes;
free(addr);
bytes=0;
rt_mem_in_use -= bytes;
return bytes;
}
| void* rt_getmem | ( | unsigned | int | ) |
Definition at line 168 of file util.cpp.
References rt_mem_in_use, and rtbomb().
Referenced by AllocateImage(), engrid_cell(), engrid_object(), fakeimage(), LoadVol(), newbndbox(), newbox(), newcylinder(), newextvol(), newfcylinder(), newgrid(), newlight(), newplane(), newquadric(), newring(), newscalarvol(), newsphere(), newstri(), newtri(), readppm(), readtga(), rt_texture(), and trace_shm().
{
void * mem;
mem=malloc( bytes );
if (mem!=NULL) {
rt_mem_in_use += bytes;
}
else {
rtbomb("No more memory!!!!");
}
return mem;
}
| int rt_meminuse | ( | void | ) |
| void rt_sleep | ( | int | ) |
Definition at line 42 of file pover_video.cpp.
Referenced by main(), main_init_parts(), PolygonsOverlap(), and rt_finalize().
{
usleep(msec*1000);
}
| void rtbomb | ( | const char * | ) |
Definition at line 191 of file util.cpp.
References MSG_ABORT, MSG_ERR, rt_finalize(), and rt_ui_message().
Referenced by AllocateImage(), and rt_getmem().
{
rt_ui_message(MSG_ERR, msg);
rt_ui_message(MSG_ABORT, "Rendering Aborted.");
rt_finalize();
exit(1);
}
| void rtmesg | ( | const char * | ) |
Definition at line 199 of file util.cpp.
References MSG_0, and rt_ui_message().
Referenced by rt_boundthresh().
{
rt_ui_message(MSG_0, msg);
}
| void timerstart | ( | void | ) |
Referenced by renderscene(), and rt_finalize().
| void timerstop | ( | void | ) |
Referenced by rt_finalize().
| flt timertime | ( | void | ) |
Referenced by rt_finalize().
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.