Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mesh_bin.cpp File Reference
#include "mesh.h"
#include <stdio.h>
#include "vegastrike.h"
#include "vs_globals.h"
#include "file_main.h"
#include "vsfilesystem.h"

Go to the source code of this file.

Macros

#define x(i)   (vb[i*6])
 
#define y(i)   (vb[i*6+1])
 
#define z(i)   (vb[i*6+2])
 
#define i(i)   (vb[i*6+3])
 
#define j(i)   (vb[i*6+4])
 
#define k(i)   (vb[i*6+5])
 

Functions

TexturecreateTexture (char const *ccc, char const *cc, int k=0, enum FILTER f1=MIPMAP, enum TEXTURE_TARGET t0=TEXTURE2D, enum TEXTURE_IMAGE_TARGET t=TEXTURE_2D, float f=1, int j=0, unsigned char c=GFXFALSE, int i=65536)
 
LogocreateLogo (int numberlogos, Vector *center, Vector *normal, float *sizes, float *rotations, float offset, Texture *Dec, Vector *Ref)
 

Macro Definition Documentation

#define i (   i)    (vb[i*6+3])
#define j (   i)    (vb[i*6+4])

Referenced by Unit::ActivateGuns(), UnitFactory::addPlanetBuffer(), AllocVerticesForSystem(), AnimationDraw(), Arrested(), AUDRefreshSounds(), AutoSafeEntrancePoint(), BaseInterface::Room::BaseShip::BaseShip(), PointStarVlist::BeginDrawState(), bootstrap_main_loop(), ROLES::buildroles(), ROLES::buildscripts(), buyShip(), Unit::CanDockWithMe(), CPK3::CheckPK3(), MeshAnimation::clear(), Unit::ClearMounts(), GFXVertexList::ColIndVtxCopy(), BaseUtil::CompPython(), ContinuousTerrain::ContinuousTerrain(), Order::createFullOrderDescription(), createTexture(), StarSystemGent::Vector::Cross(), csReversibleTransform::csReversibleTransform(), csVector3::csVector3(), disableSubUnits(), DownSampleTexture(), Bolt::Draw(), TextInputDisplay::draw(), GFXVertexList::Draw(), NavigationSystem::DrawMission(), NavigationSystem::DrawNavCircle(), DrawObjectivesTextPlane(), Order::eraseOrder(), Order::eraseType(), PlanetaryOrbit::Execute(), Unit::Fire(), CollideArray::flatten(), Unit::ForceDock(), Mesh::Fork(), Unit::getCollideTree(), GalaxyXML::Galaxy::getPlanetVariable(), Mesh::GetPolys(), GFXVertexList::GetPolys(), getRandomCachedAni(), getRandomCachedAniString(), GalaxyXML::SGalaxy::getVariable(), GFXBoxInFrustum(), GFXGetFramerate(), GFXPickLights(), GFXSphereVertexList::GFXSphereVertexList(), GFXTransferTexture(), heightmapTransform(), Unit::ImportPartList(), GFXVertexList::IndVtxCopy(), NavigationSystem::CachedSystemIterator::init(), InitJoystick(), SphereMesh::InitSphere(), Matrix3x3::IsValid(), Matrix4x4::IsValid(), JoyStick::JoyStick(), MessageCenter::last(), AnimatedTexture::LoadAni(), Mesh::LoadMeshes(), BaseComputer::loadMissionsMasterList(), FactionUtil::LoadSerializedFaction(), loadStringList(), LoadTex(), Faction::LoadXML(), Logo::Logo(), VSFileSystem::LookForFile(), StarSystemGent::Vector::Mag(), GFXQuadList::ModQuad(), myround(), myroundclamp(), NearestSystem(), NavigationSystem::SystemIterator::operator++(), Faction::ParseAllies(), SaveGame::ParseSaveGame(), StarSystemGent::Vector::Pitch(), PointStarVlist::PointStarVlist(), Mesh::PostProcessLoading(), GFXSphereVertexList::ProceduralModification(), Animation::ProcessDrawQueue(), ProcessJoystick(), Orders::AggressiveAI::ProcessLogic(), readplanetentity(), GameCockpit::ReceivedTargetInfo(), UnitUtil::RecomputeUnitUpgrades(), AccountServer::recvMsg(), AccountServer::removeDeadSockets(), Unit::RemoveFromSystem(), quadsquare::Render(), RText::renderconsole(), retrievedata(), StarSystemGent::Vector::Roll(), Rread(), select_from_space_list(), FactionUtil::SerializeFaction(), GameUnit< UnitType >::Split(), NetServer::start(), SwitchVDUTo(), NavigationSystem::CachedSystemIterator::SystemInfo::SystemInfo(), terrainTransform(), WeaponComparator< FORWARD >::ToggleWeaponSet(), StarSystem::Update(), UpdateMasterPartList(), PathManager::updatePaths(), Unit::UpgradeMounts(), Unit::UpgradeSubUnitsWithFactory(), vdu_lookup(), StarSystemGent::Vector::Vector(), VSRandom::VSRandom(), Unit::WriteUnitString(), bolt_draw::~bolt_draw(), Mesh::~Mesh(), and SpriteStarVlist::~SpriteStarVlist().

#define k (   i)    (vb[i*6+5])

Referenced by StarSystem::Statistics::AddUnit(), ContinuousTerrain::AdjustTerrain(), AUDRefreshSounds(), AutoSafeEntrancePoint(), BaseInterface::Room::BaseShip::BaseShip(), bootstrap_main_loop(), ZoneMgr::broadcastDamage(), ZoneMgr::broadcastSnapshots(), ROLES::buildroles(), buyShip(), StarSystem::Statistics::CheckVitals(), ChooseNavPoint(), Orders::FireAt::ChooseTargets(), RText::ConsoleKeyboardI(), ContinuousTerrain::ContinuousTerrain(), createTexture(), csReversibleTransform::csReversibleTransform(), csVector3::csVector3(), DownSampleTexture(), Bolt::Draw(), GameStarSystem::DrawJumpStars(), PlanetaryOrbit::Execute(), StarSystemGent::getRandName(), GetSystemColor(), ZoneMgr::getZoneBuffer(), Hashtable< int, Logo, 257 >::hash(), Mesh::LoadMeshes(), FactionUtil::LoadSerializedFaction(), LoadTex(), Logo::Logo(), StarSystemGent::Vector::Mag(), StarSystemGent::makeRS(), GFXQuadList::ModQuad(), stdext::hash< std::string >::operator()(), NavigationSystem::ParseFile(), StarSystemGent::Vector::Pitch(), NavigationSystem::SystemIterator::Position(), Mesh::PostProcessLoading(), Unit::querySphereClickList(), readplanetentity(), NetClient::Reconnect(), StarSystem::Statistics::RemoveUnit(), quadsquare::Render(), UniverseUtil::SafeStarSystemEntrancePoint(), ChooseTargetClass< numTuple >::ShouldTargetUnit(), GameUnit< UnitType >::Split(), stringhash(), StarSystem::Update(), Cockpit::Update(), GameBuilding::UpdatePhysics2(), Unit::UpgradeMounts(), StarSystemGent::Vector::Vector(), VSRandom::VSRandom(), GameUnit< UnitType >::WarpMatrix(), WarpMatrixForCollisions(), Unit::WriteUnitString(), and StarSystemGent::Vector::Yaw().

#define x (   i)    (vb[i*6])
#define y (   i)    (vb[i*6+1])
#define z (   i)    (vb[i*6+2])

Referenced by HPoint::Add(), Point::Add(), AllocVerticesForSystem(), PointStarVlist::BeginDrawState(), Point::Clamp(), Point::ClampLength(), Point::Cross(), Point::Distance(), Point::Dot(), FaceCamTarget(), csOPCODECollider::getVertex(), GFXParallel(), GFXSphereVertexList::GFXSphereVertexList(), Point::Herp(), Asteroid::Init(), SphereMesh::InitSphere(), Point::IsValid(), Point::IsZero(), Point::Lerp(), Mesh::LoadMeshes(), LookAtHelper(), Point::Mac(), Point::Mac2(), HPoint::Magnitude(), Point::Magnitude(), HPoint::Max(), Point::Max(), HPoint::Min(), Point::Min(), GFXQuadList::ModQuad(), Point::Msc(), Point::Msc2(), HPoint::Mul(), Point::Mult(), Point::Neg(), HPoint::Normalize(), Point::Normalize(), Opcode::Point::operator HPoint(), HPoint::operator!=(), Point::operator!=(), HPoint::operator*(), Point::operator*(), HPoint::operator*=(), Point::operator*=(), HPoint::operator+(), Point::operator+(), HPoint::operator+=(), Point::operator+=(), HPoint::operator-(), Point::operator-(), HPoint::operator-=(), Point::operator-=(), HPoint::operator/(), Point::operator/(), HPoint::operator/=(), Point::operator/=(), HPoint::operator==(), Point::operator==(), Point::operator^(), HPoint::operator|(), Point::operator|(), Point::Point(), Mesh::PostProcessLoading(), ProcessJoystick(), Radar::PlaneDisplay::Projection(), HeightMapInfo::Sample(), HPoint::Set(), Point::Set(), csMatrix3::Set(), Point::SetLength(), Point::SetMinusInfinity(), Point::SetPlusInfinity(), SetSubunitRotation(), GamePlanet::setTerrain(), Point::SquareDistance(), HPoint::SquareMagnitude(), Point::SquareMagnitude(), HPoint::Sub(), Point::Sub(), SumLineNormal(), SumNormal(), Point::Tweak(), Point::TweakSmaller(), Point::VectorCode(), Point::Volume(), HPoint::Zero(), and Point::Zero().

Function Documentation

Logo* createLogo ( int  numberlogos,
Vector center,
Vector normal,
float sizes,
float rotations,
float  offset,
Texture Dec,
Vector Ref 
)

Definition at line 327 of file mesh_gfx.cpp.

335 {
336  return new Logo( numberlogos, center, normal, sizes, rotations, offset, Dec, Ref );
337 }
Texture* createTexture ( char const *  ccc,
char const *  cc,
int  k = 0,
enum FILTER  f1 = MIPMAP,
enum TEXTURE_TARGET  t0 = TEXTURE2D,
enum TEXTURE_IMAGE_TARGET  t = TEXTURE_2D,
float  f = 1,
int  j = 0,
unsigned char  c = GFXFALSE,
int  i = 65536 
)

Definition at line 339 of file mesh_gfx.cpp.

349 {
350  return new Texture( ccc, cc, k, f1, t0, t, f, j, c, i );
351 }