Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros
cube_loops.hpp File Reference

Go to the source code of this file.

Macros

#define loop(v, m)   for(int v = 0; v < int(m); ++v)
 Legacy file defining loops. More...
 
#define loopi(m)   loop(i,m)
 
#define loopj(m)   loop(j,m)
 
#define loopk(m)   loop(k,m)
 
#define loopl(m)   loop(l,m)
 
#define looprev(v, m)   for(int v = int(m); --v >= 0;)
 
#define loopirev(m)   looprev(i,m)
 
#define loopjrev(m)   looprev(j,m)
 
#define loopkrev(m)   looprev(k,m)
 
#define looplrev(m)   looprev(l,m)
 
#define loopv(v)   for(int i = 0; i<(v).length(); i++)
 
#define loopvj(v)   for(int j = 0; j<(v).length(); j++)
 
#define loopvk(v)   for(int k = 0; k<(v).length(); k++)
 
#define loopvrev(v)   for(int i = (v).length()-1; i>=0; i--)
 

Macro Definition Documentation

#define loop (   v,
 
)    for(int v = 0; v < int(m); ++v)
#define loopi (   m)    loop(i,m)
#define loopirev (   m)    looprev(i,m)
#define loopj (   m)    loop(j,m)

Referenced by capturemode_common::addbase(), addmerge(), addnormals(), BIH::BIH(), md5::md5mesh::buildverts(), skelmodel::skeleton::calcantipodes(), vertmodel::vertmesh::calcbb(), skelmodel::skelmesh::calcbb(), calclerpverts(), calcscissorbox(), animmodel::mesh::calctangents(), ai::checkroute(), skelmodel::skeleton::checkskelcache(), server::chooseworstteam(), skelmodel::skeleton::cleanup(), clearsurfaces(), compactvslots(), conc(), pvsworker::cullpvs(), gui::drawskin(), skelmodel::blendcombo::finalize(), findentity(), blobrenderer::findescaped(), decalrenderer::findescaped(), inexor::sound::soundtype::findsound(), findwaterplanes(), fixinsidefaces(), forcemip(), g3d_key(), gencubeedges(), gencubeverts(), generatelightmaps(), genmatsurfs(), genmerges(), genprefabmesh(), tiger::gensboxes(), BlendBrush::gentex(), blobrenderer::gentris(), decalrenderer::gentris(), vertmodel::vertmesh::genvbo(), skelmodel::skelmesh::genvbo(), game::groupplayers(), tiger::hash(), sphere::init(), QuadNode::insert(), vector< facebounds >::insert(), insideface(), invertblendmap(), linkedpush(), md3::md3meshgroup::load(), md2::md2meshgroup::load(), iqm::iqmmeshgroup::loadiqmanims(), iqm::iqmmeshgroup::loadiqmmeshes(), mergepolys(), bigint< BI_DIGITS >::mul(), packvslot(), precachetextures(), game::preloadplayermodel(), previewblends(), ipmask::print(), server::explodeevent::process(), vacollect::remapunlit(), remip(), flarerenderer::render(), ai::render(), game::captureclientmode::rendergame(), game::collectclientmode::rendergame(), renderlightning(), renderpostfx(), rendertexturepanel(), BlendBrush::reorient(), hmap::ripple(), rotatenormals(), runcode(), savec(), savepng(), savetga(), ai::savewaypoints(), pvsworker::serializepvs(), setupmaterials(), setupsurface(), setupsurfaces(), ragdollskel::tri::shareverts(), hmap::smooth(), skelmodel::skelmeshgroup::sortblendcombos(), server::ctfservermode::spawnflag(), subdividecube(), undosize(), game::updateprojectiles(), validatec(), visibleorient(), writebinds(), and writeobj().

#define loopjrev (   m)    looprev(j,m)
#define loopk (   m)    loop(k,m)

Referenced by addcubeverts(), addglow(), addgrasstri(), server::addmaprotation(), addmerge(), addnormals(), addskyverts(), blobrenderer::addtris(), addtris(), skelmodel::blendcombo::addweight(), game::ctfclientmode::aihomerun(), ai::aiinfo::aiinfo(), skelmodel::animcacheentry::animcacheentry(), ai::anynode(), BIH::build(), ai::wpcache::build(), md5::md5mesh::buildverts(), ragdolldata::calcanimjoint(), dynlight::calccolor(), pvsworker::calcpvs(), calcpvsbounds(), calcshadowmask(), calcskylight(), calcvfcD(), callcommand(), clearsurfaces(), clipminimap(), convertoldsurfaces(), drawminimap(), faceedges(), fastskylight(), fireballrenderer::finddepthfxranges(), finddepthfxranges(), findwaterplanes(), fixrotatedlightmaps(), gendynlightvariant(), generatelightmap(), genmodemask(), genpoly(), genpvsnodes(), skelmodel::skeleton::genragdollbones(), decalrenderer::gentris(), vertmodel::vertmesh::genvbo(), skelmodel::skelmesh::genvbo(), md2::md2meshgroup::genverts(), ai::getaimpos(), collectmode_common::getteamscores(), ctfmode::getteamscores(), guessnormals(), tiger::hash(), sphere::init(), server::collectservermode::initclient(), server::ctfservermode::initclient(), skelmodel::skeleton::initragdoll(), lightreaching(), md3::md3meshgroup::load(), loadc(), iqm::iqmmeshgroup::loadiqmanims(), iqm::iqmmeshgroup::loadiqmmeshes(), Slot::loadthumbnail(), loadvslot(), mpeditface(), skelmodel::blendcombo::operator==(), packlightmaps(), game::collectclientmode::parse_network_message(), game::ctfclientmode::parse_network_message(), server::collectservermode::parsebases(), server::captureservermode::parsebases(), game::ctfclientmode::parseflags(), server::ctfservermode::parseflags(), game::parsemessages(), server::parsepacket(), game::parsepositions(), server::bombservermode::parsespawnloc(), game::collectclientmode::parsetokens(), animmodel::part::part(), game::ctfclientmode::pickholdspawn(), inexor::sound::soundtype::preloadsound(), previewblends(), previewlightmapalpha(), gui::previewslot(), skelmodel::skeleton::remapbones(), renderentsphere(), meterrenderer::renderpart(), game::renderscoreboard(), renderstate::renderstate(), rendertexturepanel(), reorienttexture(), collectmode_common::resetbases(), ctfmode::resetflags(), hmap::ripple(), rotatenormals(), savec(), savevslot(), hmap::select(), game::bombclientmode::senditems(), game::collectclientmode::senditems(), game::ctfclientmode::senditems(), game::sendposition(), skelmodel::blendcombo::serialize(), setblurshader(), setsunlightdir(), ragdollskel::setupjoints(), setupsurface(), setupsurfaces(), texcolorify(), texcolormask(), texmad(), ai::wpspot(), writeobj(), and animmodel::part::~part().

#define loopkrev (   m)    looprev(k,m)
#define loopl (   m)    loop(l,m)
#define looplrev (   m)    looprev(l,m)
#define looprev (   v,
 
)    for(int v = int(m); --v >= 0;)
#define loopv (   v)    for(int i = 0; i<(v).length(); i++)

Referenced by ai::avoidset::add(), server::add_client_connection(), aiman::addai(), server::addban(), skelmodel::skelmeshgroup::addblendcombo(), addchange(), game::adddynlights(), game::ctfclientmode::addflag(), addmergedverts(), addmerges(), addparticleemitters(), inexor::sound::soundtype::addslot(), addslotparam(), server::addteamkill(), game::collectclientmode::aicheck(), game::ctfclientmode::aicheck(), game::ctfclientmode::aidefend(), game::collectclientmode::aifind(), game::ctfclientmode::aihomerun(), game::ctfclientmode::aipursue(), allocatepostfxtex(), Shader::allocparams(), server::allowconnect(), server::hideandseekservermode::announceseekers(), ragdolldata::applyrotfriction(), ai::assist(), attachentities(), attachentity(), ai::avoid(), game::avoidweapons(), aiman::balanceteams(), BIH::BIH(), skelmodel::skelmeshgroup::blendbones(), brightestlight(), server::buildworldstate(), ai::buildwpcache(), skelmodel::skeleton::calcantipodes(), animmodel::meshgroup::calcbb(), animmodel::part::calcbb(), ragdolldata::calcboundsphere(), calcdynlightmask(), calcgeombb(), calclight(), calcmatbb(), skelmodel::skeleton::calcpitchcorrects(), calcpvsbounds(), ragdolldata::calcrotfriction(), skelmodel::skeleton::calctags(), aiman::calcteams(), ragdolldata::calctris(), server::change_mastermode(), game::changedplayermodel(), changedvars(), aiman::changemap(), server::changemap(), check_calclight_canceled(), server::check_clients_timed_out(), server::hideandseekservermode::checkfinished(), server::checkgban(), game::captureclientmode::checkitems(), game::collectclientmode::checkitems(), game::ctfclientmode::checkitems(), entities::checkitems(), checklightcache(), server::checkmaps(), inexor::sound::checkmapsounds(), ai::checkothers(), server::checkpausegame(), skelmodel::skeleton::checkskelcache(), checksleep(), entities::checktriggers(), server::checkvotes(), server::choosebestclient(), server::chooseworstteam(), Slot::cleanup(), Shader::cleanup(), animmodel::part::cleanup(), skelmodel::skeleton::cleanup(), animmodel::cleanup(), cleanupblendmap(), cleanuplightmaps(), cleanuppostfx(), cleanupslots(), cleanupthreads(), cleanupvslots(), ai::cleanwaypoints(), server::cleanworldstate(), editor::clear(), clearchanges(), game::clearclients(), server::cleardemos(), cleardynlights(), clearenvmaps(), clearlights(), clearmodel(), game::clearmovables(), clearsleep(), server::cleartimedevents(), aviwriter::close(), ai::closenode(), closestenvmap(), game::captureclientmode::closesttoenemy(), editline::combinelines(), Slot::combinetextures(), compacteditvslots(), compactvslots(), comparevslot(), complete(), ragdolldata::constraindist(), ragdolldata::constrainrot(), ai::damaged(), delblendbrush(), game::collectclientmode::deposittokens(), server::collectservermode::deposittokens(), destroyva(), server::ctfservermode::died(), capturemode_common::disttoenemy(), disttooutsideent(), server::dodamage(), game::captureclientmode::drawblips(), game::hideandseekclientmode::drawhud(), game::bombclientmode::drawhud(), game::ctfclientmode::drawhud(), game::collectclientmode::drawhud(), drawminimap(), game::drawteammates(), server::ctfservermode::dropflag(), game::ctfclientmode::dropflag(), dumplms(), server::duplicatename(), game::duplicatename(), dynlightreaching(), gle::end(), server::captureservermode::endcheck(), server::enddemoplayback(), endmodelbatches(), ai::enemy(), entcopy(), entitiesinoctanodes(), entpaste(), entities::entradius(), animmodel::part::envmapped(), animmodel::envmapped(), execbind(), game::explodeeffects(), server::extinfoteams(), server::extserverinforeply(), filltexlist(), ai::find(), aiman::findaiclient(), findents(), findfile(), findlights(), server::findmaprotation(), skelmodel::skeleton::findpitchcorrect(), skelmodel::skeleton::findpitchdep(), findreflectedvas(), capturemode_common::findscore(), server::findscore(), skelmodel::skeleton::findskelanim(), findslotparam(), inexor::sound::soundtype::findsound(), skelmodel::skeleton::findtag(), Slot::findtexture(), collectmode_common::findtoken(), findvisiblemms(), findvisiblevas(), findwaterplanes(), Shader::fixdetailshader(), Shader::flushparams(), flushpreloadedmodels(), aviwriter::flushsegment(), fonttex(), server::freegetdemo(), server::freegetmap(), g3d_render(), animmodel::meshgroup::genBIH(), animmodel::part::genBIH(), genenvmaps(), generatelumel(), gengrassquads(), genlightmaptexs(), genmodemask(), genpvs(), skelmodel::skeleton::genragdollbones(), genuniformdefs(), vertmodel::vertmeshgroup::genvbo(), skelmodel::skelmeshgroup::genvbo(), server::hideandseekservermode::getactiveplayers(), game::getbestplayers(), game::getbestteams(), server::hideandseekservermode::getnonfreezedseekers(), server::hideandseekservermode::getremaininghiders(), capturemode_common::getteamscore(), capturemode_common::getteamscores(), gettex(), game::groupplayers(), guessshadowdir(), applymenu::gui(), guilistslider(), guinameslider(), capturemode_common::hasbases(), ragdolldata::init(), server::captureservermode::initclient(), server::collectservermode::initclient(), server::ctfservermode::initclient(), initenvmaps(), initidents(), skelmodel::skeleton::initpitchdeps(), server::hideandseekservermode::initplayers(), skelmodel::skeleton::initragdoll(), editor::insertallfrom(), insertlightmap(), skelmodel::skeleton::interpbones(), server::hideandseekservermode::isfreezed(), ai::items(), ai::itemspawned(), ai::jumpto(), server::bombservermode::leavegame(), server::hideandseekservermode::leavegame(), server::ctfservermode::leavegame(), lightents(), lightreaching(), animmodel::part::link(), linkglslprogram(), linkslotshaderparams(), linkslotshaders(), game::listclients(), server::listdemos(), listfiles(), Slot::load(), md3::load(), obj::load(), iqm::load(), md5::load(), smd::load(), md5::md5meshgroup::loadanim(), animmodel::part::loaded(), animmodel::loaded(), server::loaditems(), loadlayermasks(), md5::md5meshgroup::loadmesh(), smd::smdmeshgroup::loadmesh(), loadvslots(), lookupenvmap(), flarerenderer::makelightflares(), maskreflection(), pvsworker::materialoccluded(), menuprocess(), mergepolys(), mergevslot(), mmcollide(), ragdolldata::move(), server::captureservermode::movebases(), moveplatform(), game::moveragdolls(), ai::navigate(), nearestent(), newshader(), newundoent(), game::nextfollow(), server::numclients(), octarender(), vector< facebounds >::operator=(), game::otherplayers(), overlapsdynent(), game::ctfclientmode::ownflag(), packvslot(), server::captureservermode::parsebases(), game::parsemessages(), server::parsepacket(), game::parseplayer(), patchlight(), game::ctfclientmode::pickholdspawn(), game::captureclientmode::pickteamspawn(), inexor::sound::playsound(), plcollide(), game::pointatplayer(), precachetextures(), skelmodel::skelmeshgroup::preload(), animmodel::part::preloadBIH(), animmodel::preloadBIH(), entities::preloadentities(), inexor::sound::preloadmapsounds(), animmodel::preloadmeshes(), animmodel::part::preloadshaders(), animmodel::preloadshaders(), preloadusedmapmodels(), server::shotevent::process(), server::explodeevent::process(), server::processevents(), propagatevslot(), entities::putitems(), readyeditors(), aiman::reassignai(), inexor::sound::reclaimchannels(), server::captureservermode::regenowners(), reloadfonts(), reloadshaders(), ai::avoidset::remap(), skelmodel::skeleton::remapbones(), vacollect::remapunlit(), remapvslot(), ai::remapwaypoints(), game::removebouncers(), removegui(), game::ctfclientmode::removeplayer(), collectmode_common::removetoken(), vertmodel::vertmeshgroup::render(), animmodel::part::render(), ai::render(), skelmodel::skelmeshgroup::render(), renderalphageom(), game::renderbouncers(), entities::renderentities(), renderentselection(), renderfoggedvas(), game::captureclientmode::rendergame(), game::collectclientmode::rendergame(), game::ctfclientmode::rendergame(), game::rendergame(), rendergrass(), rendermapmodels(), rendermaterials(), game::rendermovables(), game::bombclientmode::renderplayersposindicator(), renderpostfx(), game::renderprojectiles(), renderreflectedmapmodels(), renderreflectedskyvas(), game::bombclientmode::renderscoreboard(), game::captureclientmode::rendertether(), game::captureclientmode::replenishammo(), server::captureservermode::replenishammo(), reportinvalidtextslot(), inexor::sound::soundtype::reset(), inexor::sound::resetchannels(), entities::resetspawns(), entities::resettriggers(), GlobalShaderParamState::resetversions(), resolvercheck(), resolverclear(), resolverwait(), game::ctfclientmode::respawned(), game::ctfclientmode::returnflag(), ai::route(), scoregroup::sametag(), editor::save(), save_world(), savepvs(), savevslot(), seedparticles(), ai::seedwaypoints(), server::sendclipboard(), game::bombclientmode::senditems(), game::collectclientmode::senditems(), game::ctfclientmode::senditems(), game::captureclientmode::senditems(), server::sendmessages(), sendpacket(), server::sendpositions(), game::sendpositions(), server::bombservermode::sendspawnlocs(), server::serverupdate(), animmodel::setalphablend(), animmodel::setalphatest(), animmodel::setambient(), vertcommands< MDL >::setanim(), skelcommands< MDL >::setanim(), skelcommands< MDL >::setanimpart(), setblendbrush(), animmodel::setcullface(), animmodel::setenvmap(), server::hideandseekservermode::setfreezedstate(), animmodel::setfullbright(), animmodel::setglare(), animmodel::setglow(), server::setmaster(), skelcommands< MDL >::setpitchcorrect(), skelcommands< MDL >::setpitchtarget(), animmodel::setshader(), setslotshader(), animmodel::setspec(), server::bombservermode::setup(), server::captureservermode::setup(), server::collectservermode::setup(), server::ctfservermode::setup(), game::collectclientmode::setup(), game::ctfclientmode::setup(), game::captureclientmode::setup(), prefabmesh::setup(), vacollect::setupdata(), ragdollskel::setupjoints(), setupmaterials(), ragdollskel::setuprotfrictions(), shadowent(), shrinkmap(), skelmodel::skelmeshgroup::sortblendcombos(), sortlist(), entities::spawnitems(), game::startgame(), server::captureservermode::stealbase(), inexor::sound::stopchannels(), inexor::sound::stopmapsound(), inexor::sound::stopmapsounds(), inexor::sound::stopsounds(), inexor::sound::syncchannels(), animmodel::part::tangents(), ai::target(), server::teamhasplayers(), editor::tostring(), game::triggerplatform(), game::ctfclientmode::trydropflag(), ragdolldata::tryunstick(), animmodel::part::unlink(), entities::unlocktriggers(), server::captureservermode::update(), server::ctfservermode::update(), ai::update(), filesval::update(), game::updatebouncers(), updatedynlights(), server::bombservermode::updatelimbo(), game::updatemovables(), updateparticles(), ragdolldata::updatepos(), game::updateprojectiles(), updatevabb(), updatevabbs(), game::updateweapons(), useeditor(), visiblecubes(), game::weaponcollide(), server::welcomeinitclient(), server::welcomepacket(), writebinds(), writecfg(), writecompletions(), writehistory(), writeobj(), and skelmodel::skeleton::~skeleton().

#define loopvj (   v)    for(int j = 0; j<(v).length(); j++)
#define loopvk (   v)    for(int k = 0; k<(v).length(); k++)
#define loopvrev (   v)    for(int i = (v).length()-1; i>=0; i--)