![]() |
MAK Legion API Documentation
|
Contains a simple example to register and create a custom event. More...
Classes | |
| class | CustomEvent |
Typedefs | |
| typedef Legion::Callback< void(Legion::Span < const CustomEvent * >)> | CustomEventCallback |
Functions | |
| void | parseArgs (int argc, char **argv) |
| void | setMinMaxBoundary (int minX, int minY, int maxX, int maxY) |
| Legion::EventType | registerCustomEvent () |
| void | shutDownHandler () |
| int | main (int argc, char *argv[]) |
Variables | |
| double | theFrameRate = 10 |
| int | MAX_GRID = 1000 |
| std::string | theConfigFile = "legionExamples.lua" |
| Legion::Configuration * | theConfiguration = nullptr |
| Legion::SimulationDatabase * | theSimDb = nullptr |
| Legion::Connection * | theConnection = nullptr |
| Legion::BoundarySpatialPlanar | theBounds |
| LOM::WriteEntityRepository | theEntity |
Contains a simple example to register and create a custom event.
| typedef Legion::Callback<void(Legion::Span<const CustomEvent*>)> CustomEventCallback |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
References Legion::EventManager::addEvent(), Legion::SimulationDatabase::beginFrame(), Legion::EventManager::createEvent(), Legion::SimulationDatabase::createInstance(), Legion::SimulationDatabase::endFrame(), Legion::SimulationDatabase::eventManager(), Legion::Connection::isConnected(), MAX_GRID, parseArgs(), registerCustomEvent(), Legion::Connection::setIntent(), Legion::Connection::setInterest(), setMinMaxBoundary(), CustomEvent::setSourceId(), shutDownHandler(), Legion::Connection::startProcessingMessages(), theConfigFile, theEntity, theFrameRate, Legion::Connection::waitUntilDoneProcessingMessages(), Legion::Vector3d::x, Legion::Vector3d::y, and Legion::Vector3d::z.
| void parseArgs | ( | int | argc, |
| char ** | argv | ||
| ) |
| Legion::EventType registerCustomEvent | ( | ) |
References Legion::EventDescriptor::estimatedEventsPerFrame, Legion::SimulationDatabase::eventManager(), Legion::EventDescriptor::eventName, Legion::EventDescriptor::parameterDescriptors, Legion::EventManager::parameterId(), Legion::EventManager::registerEventType(), CustomEvent::theEventType, CustomEvent::theParamIdSource, CustomEvent::theParamIdTarget, and Legion::UInt64.
Referenced by main().
| void setMinMaxBoundary | ( | int | minX, |
| int | minY, | ||
| int | maxX, | ||
| int | maxY | ||
| ) |
| void shutDownHandler | ( | ) |
| int MAX_GRID = 1000 |
| Legion::BoundarySpatialPlanar theBounds |
| std::string theConfigFile = "legionExamples.lua" |
| Legion::Configuration* theConfiguration = nullptr |
| Legion::Connection* theConnection = nullptr |
| LOM::WriteEntityRepository theEntity |
| double theFrameRate = 10 |
| Legion::SimulationDatabase* theSimDb = nullptr |