Function | Description |
---|---|
create |
Create an entity |
destroy(e) |
Destroy the entity by ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct FlatOctant | |
{ | |
static const unsigned NUM_OCTANTS = 8; | |
IntVector3 index_; | |
BoundingBox boundingBox_; | |
SceneProcessorDrawableSoA data_; | |
Vector<FlatOctant> children_; | |
unsigned numActiveChildren_ = 0; | |
bool HasChildren() const { return data_.size_ == 0; } | |
bool IsSubdivided() const { return !children_.Empty(); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Copyright (c) 2008-2018 the Urho3D project. | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// @file ls/common/FlagSet.h | |
/// @brief Flag set wrapper | |
#pragma once | |
#include "ls/common/import.h" | |
namespace ls | |
{ | |
/// @addtogroup LsCommon | |
/// @{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template <class T, unsigned NBoolsValue = 4, unsigned NIntsValue = 4, unsigned NVariantsValue = 1> | |
class CompactFlatVariantMap | |
{ | |
public: | |
enum class PoolType { Bool, Int, Variant }; | |
using ElementIndex = unsigned; | |
static const unsigned PoolTypeBits = 2; | |
static const unsigned PoolTypeMask = (1 << (PoolTypeBits + 1)) - 1; | |
static const unsigned NBools = NBoolsValue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Archive | |
{ | |
/// Binary: [value] | |
/// XML: <name type="T">value</name> | |
/// JSON: "name": value (begin block or begin map) | |
/// value (begin array) | |
virtual bool Serialize(const char* name, T& value) = 0; | |
/// Binary: [key][value] | |
/// XML: <name key="key" type="T">value</name> | |
/// JSON: "key": value (begin block or begin map) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Urho3D/Resource/JSONFile.h> | |
#include <Urho3D/Resource/JSONValue.h> | |
#include <Urho3D/Resource/XMLElement.h> | |
#include <Urho3D/Resource/XMLFile.h> | |
#include <EASTL/optional.h> | |
/// Type of archive block. | |
enum class ArchiveBlockType | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class WeakNodePtr : public WeakPtr<Node> | |
{ | |
public: | |
bool LazyFind(Node* parentNode, const char* name, bool recursive = false) | |
{ | |
return Initialize(parentNode, name, false, recursive); | |
} | |
void LazyFindOrCreate(Node* parentNode, const char* name, bool recursive = false) | |
{ | |
const bool success = Initialize(parentNode, name, true, recursive); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void TestContainers() | |
{ | |
{ | |
Vector<int> v{}; | |
assert(v.Size() == 0); | |
Vector<int>::Iterator i1 = v.Begin(); | |
Vector<int>::ConstIterator i2 = v.End(); | |
RandomAccessIterator<int> i3 = v.Begin(); |
OlderNewer