Cogs.Core
|
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs.Core. More...
Namespaces | |
namespace | GltfLoader |
namespace | MarchingCubes |
Various tables for driving the Marching Cubes algorithm. | |
Classes | |
struct | AboutCommand |
struct | AbstractLiveUpdateCommand |
struct | ActiveLights |
Active lights settings. More... | |
class | AdaptivePlanarGridComponent |
struct | AdaptivePlanarGridData |
struct | AdaptivePlanarGridIndex |
struct | AdaptivePlanarGridMaterialData |
struct | AdaptivePlanarGridQuadTreeNode |
struct | AdaptivePlanarGridRefinableNode |
class | AdaptivePlanarGridSystem |
struct | AdaptivePlanarGridTile |
struct | AddComponentCommand |
struct | Animation |
struct | AnimationBuffer |
struct | AnimationCache |
struct | AnimationClip |
struct | AnimationComponent |
Component handling animation of multiple Poses of an Animation Resource. More... | |
struct | AnimationData |
struct | AnimationLoadInfo |
class | AnimationManager |
class | AnimationSystem |
struct | AnimationTrack |
class | AnnotationAxisComponent |
class | AnnotationAxisSystem |
struct | Archive |
struct | Asset |
class | AssetBounds |
struct | AssetComponent |
Instantiates an asset model into the scene. More... | |
class | AssetData |
struct | AssetDefinition |
struct | AssetGpuStats |
struct | AssetInstanceData |
struct | AssetInstanceFrameStats |
struct | AssetInstanceStats |
struct | AssetLoadInfo |
struct | AssetLodReference |
class | AssetManager |
struct | AssetModelRequest |
struct | AssetPipeCommand |
struct | AssetStatsCommand |
class | AssetSystem |
struct | AssetSystemData |
struct | AssetUpdate |
struct | AttributeDefinition |
struct | AudioComponent |
struct | AudioData |
struct | AudioDevice |
struct | AudioExtension |
struct | AudioListenerComponent |
class | AudioSystem |
struct | AxisCubeComponent |
A cube with grids on the side faces. More... | |
struct | BasicBlueNoiseLoadInfo |
class | BasicBlueNoiseManager |
class | BasicOceanComponent |
struct | BasicOceanData |
class | BasicOceanSystem |
class | BasicTerrainComponent |
struct | Batch |
struct | BatchCommand |
struct | BatchSourceDestination |
Pair of source/destination paths. Doing recursive processing adds directories to the destination. More... | |
class | BillboardComponent |
Renders a square billboard oriented towards the screen, positioned by the transform given by the TransformComponent. More... | |
class | BillboardSystem |
The billboard system calculates data for billboard components found in the scene. More... | |
struct | BillboardVertex |
struct | BlueNoise |
struct | BlueNoiseExtension |
struct | BlueNoiseLoadInfo |
class | BlueNoiseManager |
struct | Bone |
class | Bounds |
Utility class for bounds calculation of Scene / Entity. More... | |
struct | BoundsRenderer |
class | BoxCollisionComponent |
class | BoxCollisionSystem |
struct | BoxParameters |
struct | BufferBindFlags |
Buffer binding flags. More... | |
struct | BufferFlags |
Buffer state flags. More... | |
class | BufferManager |
struct | BufferResource |
Buffer resource. More... | |
struct | BufferView |
BufferView provides a typed, reference-counted, span of an underlying buffer resource. More... | |
struct | CachedEffect |
class | CameraArrayComponent |
Multi-view: Render a set of related views into array texture layers. More... | |
struct | CameraArrayData |
class | CameraArraySystem |
class | CameraComponent |
Defines a camera. More... | |
struct | CameraData |
Contains data describing a Camera instance and its derived data structured such as matrix data and view frustum. More... | |
class | CameraSystem |
The camera system computes CameraData for every CameraDataComponent in the engine. More... | |
class | CapsuleCollisionComponent |
class | CapsuleCollisionSystem |
struct | CaptureComponent |
struct | CaptureData |
struct | CaptureItem |
class | CaptureSystem |
struct | CasingExtension |
struct | ChangeEditingModeCommand |
class | CinematicCameraComponent |
struct | CinematicCameraData |
Contains Interpolators that will update the camera position and rotation based on component data. More... | |
class | CinematicCameraSystem |
The cinematic camera system calculates interpolation data for cinematic components found in the scene. More... | |
class | ClearResourceTask |
struct | ClipShapeCache |
class | ClipShapeComponent |
Sets up a clipping shape that can be used by multiple entities. More... | |
struct | ClipShapeData |
class | ClipShapeRefComponent |
Component that attaches a ClipShape to an entity. More... | |
class | ClipShapeRefSystem |
class | ClipShapeSystem |
struct | CogsModelLoader |
class | CollisionComponent |
struct | CollisionData |
struct | CollisionDetail |
struct | CollisionInfo |
class | CollisionSystem |
struct | CompiledExpression |
class | ComplexArray |
class | ComponentSystem |
Typed component system managing a pool of components with the given ComponentType. More... | |
class | ComponentSystemBase |
Base class for component systems. More... | |
class | ComponentSystemWithDataPool |
Component system with parallel data per component stored in a pool similar to how the components themselves are stored. More... | |
class | ComponentSystemWithDataPools |
Component system template with multiple parallel structures per component stored in separate pools similar to how the components themselves are stored. More... | |
struct | ComputeTask |
struct | ConstantBufferDefinition |
struct | ConstantBuffers |
struct | ConstantBufferVariableDefinition |
class | ConstraintComponent |
struct | ConstraintData |
class | ConstraintSystem |
class | Context |
A Context instance contains all the services, systems and runtime components needed to use Cogs. More... | |
class | ContextBase |
Context base contains the parts of a Context that may be instantiated by static scene or model instances. More... | |
class | CopyResourceTask |
class | CoreAllocator |
struct | CreateEntityCommand |
struct | CubeMarkerComponent |
struct | CubeMarkerData |
class | CubeMarkerSystem |
struct | CullingData |
class | CullingManager |
struct | CullingSource |
class | CurvedEarthPositionComponent |
class | CylinderCollisionComponent |
class | CylinderCollisionSystem |
class | DataFetcherBase |
struct | DataSet2DComponent |
struct | DataSetComponent |
struct | DataStream |
Contains a stream of data used by Mesh resources. More... | |
struct | DebugGeometryRenderer |
struct | DefaultMaterial |
Default material. More... | |
struct | DeferredLightingTask |
class | DeferredNameResolution |
class | DepthAxisComponent |
struct | DepthAxisData |
class | DepthAxisSystem |
struct | DepthBias |
Defines data for controlling the depth output when rasterizing geometry. More... | |
struct | DestroyCommand |
class | DimeLoader |
struct | DimeLoaderExtension |
class | DPIService |
class | DracoMeshDecompressor |
struct | DrawContext |
struct | DrillingExtension |
struct | DumpStatsCommand |
class | DynamicComponent |
Base class for components implementing dynamic behavior. More... | |
class | DynamicComponentSystem |
The dynamic component system handles instances of components derived from DynamicComponent. More... | |
class | Editor |
struct | EditorCommand |
Base class for Cogs Editor commands. More... | |
struct | EditorExtension |
struct | EditorRenderExtension |
class | EditorRenderTask |
WireFrame Rendering task for Selected entity outline and extra cameras. More... | |
struct | EditorState |
struct | Effect |
Effect resources contain data to control the shader stages of the GPU pipeline. More... | |
struct | EffectBinding |
struct | EffectBindings |
struct | EffectCache |
struct | EffectDefinition |
Defines a loadable effect. More... | |
struct | EffectDescription |
struct | EffectLoadInfo |
Load information for Effect resources. More... | |
class | EffectManager |
Effect manager responsible for loading, processing and activating Effect resources. More... | |
class | EmptyCollisionComponent |
class | EmptyCollisionSystem |
class | Engine |
The engine owns all the systems and resource managers, and is responsible for executing different stages of updates in the correct order. More... | |
struct | EngineBuffers |
struct | EngineData |
struct | EnginePermutation |
struct | EnginePermutationDefinition |
struct | EnginePermutations |
struct | EngineSystems |
struct | EntityCreationContext |
struct | EntityData |
Holds extra housekeeping data for an Entity instance. More... | |
struct | EntityDefinition |
Defines how to construct entities of a certain type by a list of components to instantiate and default values to apply to fields in these components. More... | |
struct | EntityInstanceData |
struct | EntityInstanceFlags |
class | EntityStore |
Stores top level entities for the engine. More... | |
struct | EnvironmentComponent |
struct | EnvironmentData |
class | EnvironmentSystem |
class | EventBasedInput |
Event based input handler. More... | |
class | ExportCommand |
class | ExportGltfCommand |
struct | Expression |
Defines a string expression, to be parsed and evaluated by an expression context. More... | |
class | ExpressionComponent |
struct | ExpressionContext |
Provides a context for evaluation of expressions. More... | |
struct | ExpressionValue |
struct | ExpressionValueInit |
struct | ExpressionVariable |
Defines a single named expression variable. More... | |
struct | Extension |
Defines an extension to Cogs.Core and provides methods to override in order to initialize extension code. More... | |
struct | ExtensionCommand |
struct | ExtensionItem |
class | ExtensionRegistry |
Extension registry used to host and manage extension instances. More... | |
class | ExtensionSystems |
Contains extension systems accessible by key. More... | |
struct | ExtrusionComponent |
struct | ExtrusionData |
struct | ExtrusionLogData |
class | ExtrusionSystem |
class | Features |
struct | FieldInfo |
struct | FieldValue |
Defines a value to apply to a field. More... | |
struct | FilterListTask |
class | FixedConstraintComponent |
class | FixedConstraintSystem |
class | FogComponent |
Contains data to describe fog. More... | |
struct | FogData |
Holds calculated data for a single fog instance. More... | |
class | FogSystem |
The fog system manages fog instances, in addition to special handling a single fog component as the global fog instance. More... | |
class | FollowComponent |
struct | Font |
Font resources are used to render text with a specific font and size. More... | |
struct | FontDefinition |
Defines a Font. More... | |
struct | FontLoadInfo |
Defines information used to load a Font resource. More... | |
class | FontManager |
Font manager responsible for loading, processing and lifetime of Font resources. More... | |
class | FontSelectorComponent |
Creates fontHandle from Font+Size passing handle to other components having the 'fontHandle' field. More... | |
class | FPSNavigationComponent |
struct | Gamepad |
struct | GenerateListTask |
struct | GenerateNormalsCommand |
struct | GenerateTangentsCommand |
class | GenericConstraintComponent |
class | GenericConstraintSystem |
struct | GenNormalsCommand |
struct | GhostAction |
class | GhostComponent |
struct | GhostContact |
struct | GhostData |
class | GhostSystem |
struct | GliTextureLoader |
struct | GliTextureLoaderExtension |
struct | GlobalBinding |
struct | GltfLoaderExtension |
struct | GroupCommand |
struct | GuiComponent |
struct | GuiContainer |
struct | GuiData |
struct | GuiDocument |
struct | GuiExtension |
struct | GuiFont |
struct | GuiFontRegistry |
struct | GuiLoadInfo |
class | GuiManager |
struct | GuiRenderComponent |
class | GuiRenderSystem |
struct | GuiRenderTask |
class | GuiSystem |
struct | H264ParseData |
struct | H265NALheader |
struct | H265ParseData |
struct | H265PicParameterSet |
struct | H265ProfileTierLevel |
struct | H265SeqParameterSet |
struct | H265VideoParameterSet |
struct | H265VuiParameters |
struct | HeightMapComponent |
struct | HeightMapData |
class | HeightMapSystem |
class | HingeConstraintComponent |
class | HingeConstraintSystem |
struct | HrdParameters |
class | IAsyncResourceLoader |
class | IBlueNoiseManager |
class | ICommandState |
struct | IconInfo |
class | IEditor |
class | IGetBounds |
class | IInputDevice |
class | IInputProvider |
class | ILoadedResourceLoader |
class | ILoadedResourceViewLoader |
struct | Image360Component |
struct | Image360Data |
struct | Image360Extension |
struct | Image360System |
struct | ImageCache |
struct | ImageDefinition |
class | ImguiRenderer |
struct | InputDeviceIdentifier |
Identifier for an input device. More... | |
struct | InputDevices |
struct | InputDeviceState |
struct | InputEvent |
Event input queue event. Contains either a keyboard or mouse event. Keyboard event: More... | |
struct | InputIdentifier |
Identifier for an input device axis. More... | |
struct | InputKeyEvent |
Event based input data for Keyboard events. More... | |
class | InputManager |
Input manager responsible for handling input from various devices, including mouse, keyboard, game controllers etc. More... | |
struct | InputUserData |
class | InspectorGuiRenderer |
struct | InstanceData |
struct | InstancedMeshPicker |
class | InstancedMeshRenderBounds |
Implement custom bounds calculation. More... | |
class | InstancedMeshRenderComponent |
Renders a mesh using instancing. More... | |
struct | InstancedMeshRenderData |
class | InstancedMeshRenderSystem |
Instanced mesh render system. More... | |
struct | InstancedModelComponent |
Instanced model rendering component. More... | |
struct | InstancedModelData |
class | InstancedModelSystem |
struct | IOHandler |
class | IRayPickable |
Interface for modules implementing custom picking. More... | |
class | IRenderer |
Renderer interface used by the engine to control registered renderer instances. More... | |
class | IRendererExtension |
Defines an extension to the renderer, capable of doing custom rendering. More... | |
class | IRenderResources |
Interface to the render resources. More... | |
class | IResourceLoader |
class | IResourceManager |
Defines common resource manager interface shared by resource managers for all types of resources. More... | |
class | IValueTypeManager |
class | IVideoDecoder |
struct | IVideoDecoderContext |
struct | IVideoEncoder |
struct | IVideoEncoderContext |
class | JsonMemoryBufferStream |
struct | LastPickState |
Shows information about last picking. More... | |
struct | LightBuffer |
struct | LightCascadeFrustaPoints |
class | LightComponent |
Defines a single light source and its behavior. More... | |
struct | LightData |
Defines calculated light data. More... | |
class | LightSystem |
Holds all LightComponent instances in the system. More... | |
struct | List |
struct | ListNode |
struct | ListObjectBuffer |
struct | LoadRvmCommand |
struct | LocalBounds |
struct | LocalTransform |
Defines local transform data. More... | |
class | LodComponent |
Contains data describing level of detail behavior for the entity the component belongs to. More... | |
struct | LodData |
Defines level of detail data calculated by the LodSystem. More... | |
struct | LodInstanceData |
class | LodSystem |
The LodSystem is responsible for calculating common basic level of detail data for all entities with LodComponents attached to them. More... | |
struct | LoftedCrossSectionsComponent |
struct | LoftedCrossSectionsData |
class | LoftedCrossSectionsSystem |
struct | MappedStream |
Wrapper for mapped stream data automatically updating the Mesh resource mapped from when destructed. More... | |
struct | MappedStreamReadOnly |
Wrapper for read-only access to mapped stream data. More... | |
class | MappedTexture |
Wrapper for mapped texture data, ensuring RAII behavior of stream map/unmap operations. More... | |
class | MarkerPointSetComponent |
! Generate a set of points for the given position array. More... | |
struct | MarkerPointSetData |
struct | MarkerPointSetPicker |
class | MarkerPointSetSystem |
struct | Material |
Material resources define the how of geometry rendering (the what is defined by Mesh and Texture resources). More... | |
struct | MaterialComponent |
Exposes material properties for legacy entities and code. More... | |
struct | MaterialData |
struct | MaterialDefinition |
struct | MaterialDefinitionBase |
class | MaterialDefinitionManager |
class | MaterialEditor |
struct | MaterialFlags |
Defines material flags controlling the behavior of Materials when rendering. More... | |
struct | MaterialInstance |
Material instances represent a specialized Material combined with state for all its buffers and properties. More... | |
class | MaterialInstanceManager |
Material instance manager handles creation, processing and lifetime for MaterialInstance resources. More... | |
struct | MaterialLoadInfo |
Defines loading information for Material resources. More... | |
class | MaterialManager |
Material manager handling loading and processing of Material resources. More... | |
struct | MaterialOptions |
Defines options for rendering using a material instance. More... | |
struct | MaterialProperties |
struct | MaterialProperty |
Defines a single material property. More... | |
struct | MaterialPropertyBuffer |
Material property buffers contain properties for a material, such as color, reflectiveness or other values, packed into a buffer for easy data management in the renderer. More... | |
struct | MaterialPropertyBufferInstance |
Material property buffer instances are created from MaterialPropertyBuffers, and have the same set of properties and layout as the buffer. More... | |
struct | MaterialPropertyDescriptor |
Contains location/size information for a property. More... | |
class | MaterialSystem |
Updates material components. More... | |
struct | MaterialTextureDefinition |
struct | MemoryContext |
struct | MemoryContextStorage |
struct | Menu |
struct | MenuItem |
struct | MergeCommand |
struct | MergeInstance |
struct | MergeMaterialCommand |
struct | MergeMeshCommand |
struct | MergeMeshState |
struct | Mesh |
Meshes contain streams of vertex data in addition to index data and options defining geometry used for rendering and picking. More... | |
class | MeshCollisionComponent |
class | MeshCollisionSystem |
class | MeshComponent |
Contains a handle to a Mesh resource to use when rendering using the MeshRenderComponent. More... | |
struct | MeshFlags |
Defines mesh flags controlling the behavior of Mesh resources. More... | |
class | MeshGenerator |
struct | MeshGeneratorComponent |
Generates mesh data and assigns the generated mesh to a MeshComponent on the same entity. More... | |
struct | MeshGeneratorData |
class | MeshGeneratorSystem |
struct | MeshItem |
struct | MeshItems |
class | MeshManager |
Mesh manager handling the creation, processing and lifetime of Mesh resources. More... | |
struct | MeshManagerData |
class | MeshoptDecompressor |
class | MeshRayPickableBase |
Base class for picking meshes. More... | |
class | MeshRenderComponent |
Renders the contents of a MeshComponent using the given materials. More... | |
struct | MeshRenderData |
struct | MeshRenderPicker |
struct | MeshRep |
struct | MeshStreamsLayout |
class | MeshSystem |
struct | MessageDispatcher |
struct | MipLevelsTask |
struct | ModalEditorCommand |
Abstract base class for all editor commands showing GUI in interactive mode. More... | |
struct | Model |
Model resources define a template for a set of connected entities, with resources such as meshes, materials and textures defined. More... | |
struct | ModelComponent |
Contains a model reference to instance as children to the entity the ModelComponent belongs to. More... | |
class | ModelData |
struct | ModelFileData |
struct | ModelInstanceData |
struct | ModelLoadInfo |
class | ModelManager |
Model manager responsible for loading, processing and lifetime for Model resources. More... | |
struct | ModelManagerData |
struct | ModelPart |
struct | ModelStats |
class | ModelSystem |
struct | MotionComponent |
Contains motion data. More... | |
struct | MPEGAdaptationField |
struct | MPEGNetworkInformationTable |
struct | MPEGProgramAssociationSection |
struct | MPEGProgramMapEntity |
struct | MPEGProgramMapTable |
struct | MPEGTransportStreamData |
struct | MPEGTransportStreamEncoder |
struct | MPEGTransportStreamHeader |
class | MultiphaseFlowComponent |
struct | MultiphaseFlowExtension |
struct | NALheader |
class | NearLimitComponent |
Contains data to describe fog. More... | |
class | NoiseSampler |
struct | NoOpModalCommand |
struct | NormalGenArgs |
struct | ObjectBuffer |
class | OceanBounds |
struct | OceanComponent |
struct | OceanData |
class | OceanPicker |
class | OceanSystem |
class | OGC3DTilesBounds |
struct | OGC3DTilesComponent |
struct | OGC3DTilesData |
struct | OGC3DTilesDataHolder |
struct | OGC3DTilesExtension |
class | OGC3DTilesSystem |
class | OrbitingCameraController |
Component that calculates position and orientation of the entity TransformComponent. More... | |
class | OverlayComponent |
Overlay component. More... | |
class | OverlaySystem |
The overlay system handles OverlayComponent instances. More... | |
struct | PackMeshCommand |
struct | ParsedOption |
struct | ParsedValue |
Stores the parsed output of a key/value pair. More... | |
struct | PartialPreprocessor |
Partial C preprocessor. More... | |
struct | PasteEntityCommand |
struct | PES_Sinc |
struct | PhysicsExtension |
class | PhysicsManager |
class | PickingBeamComponent |
struct | PicParameterSet |
struct | PipelineInstance |
struct | PipelineRun |
class | PipelineService |
class | PlaneCollisionComponent |
class | PlaneCollisionSystem |
struct | PointParameters |
struct | Pos4hNorm10Tex2f |
struct | Pos4hNorm8Tex2f |
struct | PoseData |
struct | PositionColorVertex |
struct | PositionNormalColorVertex |
struct | PositionNormalTexVertex |
struct | PositionNormalVertex |
struct | PositionVertex |
struct | PostCommand |
Abstract base class for all editor batch Post commands. More... | |
struct | PostProcessTask |
class | PotreeBounds |
struct | PotreeCell |
struct | PotreeComponent |
Component for Point Cloud Display. More... | |
struct | PotreeData |
struct | PotreeDataHolder |
struct | PotreeDecodeInData |
struct | PotreeDecodeOutData |
struct | PotreeExtension |
struct | PotreeNodeHeapItem |
struct | PotreePicker |
struct | PotreeRenderer |
struct | PotreeSubtree |
struct | PotreeSystem |
struct | PotreeVertexLayoutInfo |
struct | ProceduralSkyComponent |
struct | ProceduralSkyExtension |
struct | ProcessTask |
struct | ProcessTaskProperty |
struct | PropertiesComponent |
class | PropertiesSystem |
struct | PropertyInfo |
struct | PropertyRange |
struct | PropertyStore |
struct | QuadBounds |
struct | QuadNode |
class | QualityService |
struct | QueueState |
Reports current state of a queue. More... | |
struct | QueueWorkerState |
reports current state of a queue worker. More... | |
struct | QueueWorkerStateData |
Tracks kernel launches by a worker thread as they happen. More... | |
struct | RadialLogComponent |
class | Random |
struct | RayIntersectionHit |
class | RayPicking |
class | ReadbackTask |
struct | ReaderContext |
struct | ReaderExtension |
class | ReflectionComponent |
struct | RegisteredService |
Registered service structure. More... | |
struct | RemapMaterialCommand |
struct | RenderBatch |
struct | RenderBuffer |
class | RenderComponent |
Base component for all rendering content. More... | |
struct | RenderEffect |
class | Renderer |
Core renderer system. More... | |
struct | Renderers |
struct | RenderingEvent |
Defines rendering events. More... | |
struct | RenderItem |
struct | RenderList |
struct | RenderListTask |
struct | RenderMaterial |
struct | RenderMaterialInstance |
struct | RenderMesh |
struct | RenderPass |
struct | RenderPassOptions |
struct | RenderPipeline |
struct | RenderPipelineDefinition |
class | RenderPipelineManager |
struct | RenderResource |
struct | RenderResourceBase |
Render resources represent Engine resources like Mesh, Effect or MaterialInstance, in the renderer. More... | |
struct | RenderResourceDefinition |
class | RenderResources |
Contains render resources used by the renderer. More... | |
struct | RenderResourceStorage |
struct | RenderSettings |
Render settings variables. More... | |
struct | RenderStates |
class | RenderSystem |
The mesh render system handles MeshRenderComponents. More... | |
struct | RenderTarget |
struct | RenderTask |
struct | RenderTaskContext |
struct | RenderTaskDefinition |
struct | RenderTaskFlags |
struct | RenderTaskParameters |
struct | RenderTaskResource |
struct | RenderTaskResources |
struct | RenderTaskSlot |
struct | RenderTexture |
class | ResolveResourceTask |
struct | Resource |
class | ResourceArchive |
Represents a resource archive used to load resources at runtime. More... | |
struct | ResourceBase |
Base class for engine resources. More... | |
struct | ResourceBuffer |
struct | ResourceCache |
struct | ResourceDefinition |
struct | ResourceHandle_t |
Opaque resource handle for holding references to resources. More... | |
struct | ResourceHandleBase |
Resource handle base class handling reference counting of resources derived from ResourceBase. More... | |
struct | ResourceInfo |
struct | ResourceLoadInfoBase |
class | ResourceManager |
The generic resource manager provides a base implementation for specialized resource managers to build on. More... | |
class | ResourceManagerBase |
struct | ResourceManagerBaseStorage |
struct | ResourcePointerMap |
Structure to hold a set of pointers with constant time insertion and removal. More... | |
class | ResourceProxy |
struct | ResourceQueryResult |
class | ResourceStore |
Provides handling of reading and caching of external resources. More... | |
struct | ResourceStoreStorage |
class | ResourceUsageLogger |
class | RigidBodyComponent |
struct | RigidBodyData |
class | RigidBodySystem |
class | RiserFlexJointComponent |
class | RiserJointComponent |
class | RiserTelescopicJointComponent |
class | RiserTensionerComponent |
struct | RotateCommand |
struct | RotationKey |
struct | RRMinMaxErrorGuidedTask |
struct | RRMultiMinMaxErrorGuidedTask |
struct | RRMultiSimplifyCommand |
struct | RRMultiTaskBase |
struct | RRMultiTriangleGuidedTask |
class | RRSaveAllLodCommand |
struct | RRSimplifiyCommand |
struct | RRTaskBase |
struct | RRTaskState |
struct | RRTriangleGuidedTask |
struct | ScaleCommand |
struct | ScaleKey |
struct | ScaleMeshCommand |
struct | ScaleToUnitCubeCommand |
class | Scene |
class | SceneComponent |
Contains information on how the entity behaves in the scene. More... | |
struct | SceneDefinition |
struct | SceneEntityDefinition |
struct | SceneEntityFlags |
struct | SceneInstanceData |
struct | SceneParameters |
struct | SceneState |
class | SceneSystem |
The scene system handles SceneComponent instances, managing hierarchical visibility and pickability based on the components field values. More... | |
class | ScopedIndent |
struct | ScreenshotSettings |
Screenshot render settings. More... | |
class | ScreenSizeComponent |
Allows to control the screen size of the entity. More... | |
struct | ScreenSizeData |
class | ScreenSizeSystem |
struct | ScriptArg |
class | ScriptComponent |
class | ScriptContext |
struct | ScriptData |
Holds calculated data for a single script instance. More... | |
struct | ScriptFunction |
class | ScriptingEngine |
class | ScriptingManager |
struct | ScriptObject |
struct | ScriptProperty |
class | ScriptSystem |
class | SeaCurrentQuadtree |
class | SeaCurrentsBounds |
Needs custom bounds calculation. More... | |
struct | SeaCurrentsComponent |
Component for displaying surface currents based on the IHO S111 standard. More... | |
struct | SeaCurrentsData |
struct | SeaCurrentsExtension |
class | SeaCurrentsRenderer |
class | SeaCurrentsSystem |
The sea currents system manages and displays sea currents per the S-111 specification. More... | |
class | SelectCommand |
struct | SeqParameterSet |
struct | SerializationContext |
class | Services |
Service registry. More... | |
struct | SetFieldCommand |
struct | SetMaterialPropertyCommand |
struct | SetTexturePropertyCommand |
struct | ShaderDefinition |
struct | ShaderInterfaceDefinition |
struct | ShaderInterfaceMemberDefinition |
struct | ShaderTypes |
struct | ShaderVariantDefinition |
struct | ShaderVariantEnum |
struct | ShaderVariantRequirement |
struct | ShaderVariantSelector |
struct | ShadowBuffer |
struct | ShadowData |
struct | ShapeCache |
struct | ShapeComponent |
struct | ShapeDefinition |
Defines creation values for a unique shape. More... | |
class | ShapeSystem |
struct | SharedRigidBodyData |
struct | ShowLicensesCommand |
struct | SimplifiedMeshSet |
struct | SizeT |
struct | Skeleton |
struct | SliceLayer |
struct | Sound |
class | SoundManager |
struct | SparseBuildOctreeCommand |
class | SphereCollisionComponent |
class | SphereCollisionSystem |
class | SpringConstraintComponent |
class | SpringConstraintSystem |
struct | SpriteBatch |
struct | SpriteMaterial |
class | SpritePicker |
class | SpriteRenderComponent |
struct | SpriteRenderData |
class | SpriteRenderSystem |
struct | SpriteVertex |
struct | StaticModelComponent |
struct | StaticModelContext |
struct | StaticModelData |
class | StaticModelSystem |
struct | StringParameter |
struct | StringRef |
class | StringViewCharPtr |
Utility class to ensure that a StringView string is null terminated. More... | |
struct | SubContext |
struct | SubMesh |
Defines a sub-mesh of a Mesh resource. More... | |
struct | SubMeshLocalBounds |
struct | SubMeshPicker |
class | SubMeshRenderComponent |
Renders a mesh with flexible submesh usage. More... | |
struct | SubMeshRenderData |
class | SubMeshRenderSystem |
The submesh render system handles SubMeshRenderComponents. More... | |
struct | SubMeshWorldBounds |
struct | SwitchComponent |
Signals that an entity should only have one visible child at any time. More... | |
struct | SystemPriority |
Contains system priority enumeration. More... | |
class | Task |
Defines a task meant to be placed in a TaskQueue and handled by a TaskWorker instance. More... | |
struct | TaskId |
Task id struct used to identify unique Task instances. More... | |
class | TaskManager |
Manages Task queuing and execution. More... | |
class | TaskPool |
Task pool providing fast and easy allocation and deallocation of Task instances. More... | |
class | TaskQueue |
Task queues holds tasks ready for execution by TaskWorkers. More... | |
class | TaskQueues |
Manages the set of active task queues in the task manager. More... | |
class | TaskWorker |
Task worker executing Task instances retrieved from a TaskQueue. More... | |
class | TeleportNavigationComponent |
class | TensionRingComponent |
class | TerrainBounds |
struct | TerrainComponent |
struct | TerrainData |
struct | TerrainExtension |
class | TerrainPicker |
class | TerrainRenderer |
class | TerrainSystem |
class | Text3DComponent |
Renders the given text(s) as 3D mesh data. More... | |
class | Text3DSystem |
The 3D text system handles Text3DComponents. More... | |
class | TextComponent |
Renders the given text(s) by generating sprites. More... | |
class | TextSystem |
The text system handles TextComponents. More... | |
struct | Texture |
Texture resources contain raster bitmap data to use for texturing. More... | |
class | TextureAllocator |
class | TextureGenerator |
struct | TextureGeneratorComponent |
Generates texture data and assigns the texture to either a MaterialComponent on the entity or the set material target. More... | |
class | TextureGeneratorSystem |
struct | TextureLoadInfo |
class | TextureManager |
Texture manager responsible for loading, processing, activation and lifetime of Texture resources. More... | |
struct | TextureProperty |
Property value for texture samplers. More... | |
struct | TextureValue |
struct | TextureWithSampler |
class | Time |
Provides time services for components depending on elapsed or system time for animation or other tracking. More... | |
struct | TimingScope |
struct | TrackCache |
class | TrajectoryAlignedComponent |
Aligns the entity along a trajectory at a specified depth. More... | |
struct | TrajectoryComponent |
Data component defining a 3D trajectory, for example a Well trajectory. More... | |
struct | TrajectoryCrossSectionsComponent |
struct | TrajectoryCrossSectionsData |
class | TrajectoryCrossSectionsSystem |
struct | TrajectoryData |
struct | TrajectoryLayoutComponent |
class | TrajectoryLayoutSystem |
class | TrajectorySystem |
class | TransformComponent |
Defines a 4x4 transformation matrix for the entity and a global offset for root entities. More... | |
struct | TransformItem |
struct | TransformState |
Defines the state of a transform. More... | |
class | TransformSystem |
The transform system handles TransformComponent instances, calculating local and global transform data for each component. More... | |
struct | TranslateCommand |
struct | TranslationKey |
struct | TransparencyDrawContext |
struct | TransparencyMergeTask |
struct | TransparencyParameters |
struct | TransparencyRenderTask |
struct | TransparencyTemporalUpscaleTask |
struct | TransparencyUpscaleTask |
class | TriggerComponent |
class | TriggerSystem |
struct | TSCallbackData |
struct | UniqueVerticesCommand |
struct | UnpackOptions |
struct | ValueDefinition |
struct | ValueVariant |
struct | Variable |
Runtime control variable. More... | |
struct | VariableExtrusionComponent |
struct | VariableExtrusionData |
class | VariableExtrusionSystem |
class | Variables |
Manages runtime variables for the engine. More... | |
struct | vec1010102 |
struct | VertexDataType |
Defines vertex data types used to track streams in Mesh instances. More... | |
struct | VertexFormats |
struct | VideoCaptureComponent |
struct | VideoCaptureData |
class | VideoCaptureRenderer |
class | VideoCaptureSystem |
struct | VideoDecoderCallbackData |
struct | VideoDecoderCaps |
struct | VideoDecoderDescription |
struct | VideoDecoderPayload |
struct | VideoDecoderStatus |
struct | VideoEncoderDescription |
struct | VideoEncoderInput |
struct | VideoEncoderPayload |
struct | VideoEncoderStatus |
struct | VideoPlaybackComponent |
struct | VideoPlaybackData |
class | VideoPlaybackSystem |
struct | VideoPresentCallbackData |
struct | ViewBufferEntry |
class | ViewContext |
struct | VuiParameters |
class | WaveSoundLoader |
struct | WellLogExtension |
struct | WorldBounds |
struct | WorldTransform |
Defines world transform data. More... | |
struct | WriteModelSettings |
struct | ZipComponent |
Component displaying a 3D log on a trajectory. More... | |
struct | ZipData |
class | ZipSystem |
Typedefs | |
using | ComponentCreator = std::function< ComponentModel::ComponentHandle(void)> |
using | ComponentDestroyer = std::function< void(ComponentModel::ComponentHandle)> |
typedef void | ResourceLoadCallback(class Context *context, int resourceType, ResourceId id, int code) |
Resource loading callback. | |
typedef void | HierarchyChangeCallback(class Context *context, EntityId entityId) |
Hierarchy change callback. | |
typedef void | RenderCallback(class Context *context) |
typedef void | ReadbackCallback(class Context *context, const char *key, const void *data, int size) |
typedef void | ReadbackCallbackInternal(class Context *context, const CameraData *, uint32_t frame, const char *key, const void *data, int size) |
typedef void | MessageCallback(int messageId, const void *data) |
typedef void | ComponentNotifyCallback(BridgeContext *context, int componentTypeId, size_t entityId, int notification, const void *data, size_t dataSize) |
Callback to receive component notifications. | |
using | EntityIds = std::vector< EntityId > |
using | TextureHandle = ResourceHandle_t< Texture > |
typedef void | NeedsUpdateCallback(void *data) |
using | MaterialInstanceDefinition = ResourceDefinition |
using | EntityPtr = std::shared_ptr< ComponentModel::Entity > |
Smart pointer for Entity access. | |
using | ConstEntityPtr = std::shared_ptr< const ComponentModel::Entity > |
Smart pointer for const Entity access. | |
using | WeakEntityPtr = std::weak_ptr< ComponentModel::Entity > |
Weak Smart pointer for Entity access. | |
using | ConstWeakEntityPtr = std::weak_ptr< const ComponentModel::Entity > |
Weak Smart pointer for const Entity access. | |
typedef std::function< void(Context *context, bool *show)> | Inspector |
typedef std::vector< RenderItem > | RenderItems |
typedef std::vector< std::pair< std::string, std::string > > | PipelineOptions |
typedef std::vector< RenderTask * > | RenderTaskList |
typedef std::function< RenderTask *(RenderTaskContext *, const RenderTaskDefinition &, const PipelineOptions &)> | TaskCreator |
typedef std::function< void(RenderTask **, RenderTaskContext *)> | TaskDestroyer |
using | TextureDefinition = ResourceDefinition |
using | ResourcesDefinition = std::vector< ResourceDefinition > |
typedef ResourceLoadInfoBase | BufferLoadInfo |
typedef IResourceLoader< Font, FontLoadInfo > | IFontLoader |
typedef IResourceLoader< Model, ModelLoadInfo > | IModelLoader |
typedef ILoadedResourceLoader< Model, ModelLoadInfo > | ILoadedModelLoader |
typedef IResourceLoader< Texture, TextureLoadInfo > | ITextureLoader |
typedef IAsyncResourceLoader< Texture, TextureLoadInfo > | IAsyncTextureLoader |
typedef ILoadedResourceViewLoader< Texture, TextureLoadInfo > | ILoadedTextureLoader |
typedef std::string | PropertyName |
Typedef for property names. | |
using | BlueNoiseHandle = ResourceHandle_t< BlueNoise > |
using | EffectHandle = ResourceHandle_t< Effect > |
using | MaterialHandle = ResourceHandle_t< Material > |
using | MaterialInstanceHandle = ResourceHandle_t< MaterialInstance > |
using | ModelHandle = ResourceHandle_t< Model > |
using | MeshHandle = ResourceHandle_t< Mesh > |
using | FontHandle = ResourceHandle_t< Font > |
using | AnimationHandle = ResourceHandle_t< Animation > |
using | GuiDocumentHandle = ResourceHandle_t< GuiDocument > |
using | AssetHandle = ResourceHandle_t< Asset > |
using | ResourceBufferHandle = ResourceHandle_t< BufferResource > |
using | VariableKey = uint16_t |
Used to lookup material properties. | |
using | ConstantBufferKey = uint16_t |
using | ShaderVariants = std::vector< ShaderVariantDefinition > |
using | ShaderVariantSelectors = std::vector< ShaderVariantSelector > |
typedef BillboardVertex | TextVertex |
typedef BillboardVertex | OverlayVertex |
using | ScriptArgs = std::vector< ScriptArg > |
using | ScriptFunctionType = std::function< ScriptObject *(ScriptObject *, const ScriptArgs &args)> |
using | ScriptProxyGet = std::function< ScriptObject *(ScriptObject *, const StringView &key)> |
using | ScriptProxySet = std::function< bool(ScriptObject *, const StringView &key, const ScriptArg &arg)> |
using | ScriptContextHandle = std::shared_ptr< ScriptContext > |
using | TaskQueueId = uint16_t |
Unique id for a task queue. | |
using | TaskFunction = std::function< void()> |
Type of task function used by the task manager. | |
using | TaskFunctionRef = const TaskFunction & |
using | MessageId = size_t |
typedef std::function< void(Context *, EntityId)> | HierarchyChangedCallback |
using | SpriteBatchIndex = size_t |
using | SpriteIndex = size_t |
using | SpriteMaterialKey = size_t |
using | TokenStream = std::vector< StringView > |
using | ResizeCallback = void(class ViewContext *context, int x, int y) |
typedef ResourceHandle_t< Sound > | SoundHandle |
using | SoundLoadInfo = ResourceLoadInfoBase |
typedef std::vector< MeshRep > | MeshReps |
using | CommandCreator = std::function< EditorCommand *(EditorState *)> |
using | VideoDecoderCallback = void(const VideoDecoderCallbackData &) |
using | VideoPresentCallback = void(const VideoPresentCallbackData &) |
using | VideoEncoderCallback = std::function< void(struct IVideoEncoder *, struct VideoEncoderPayload &payload)> |
typedef std::function< void(TSCallbackData &)> | TSCallback |
typedef std::function< void(uint8_t *data, size_t size)> | TSEncodeCallback |
Enumerations | |
enum struct | BasicOceanWaves { Default , Quux } |
enum struct | BasicOceanReflection { Planar , EnvSkyBox , EnvRadiance } |
enum struct | BasicOceanBeliefSystem { FlatEarth , CurvedEarth } |
enum struct | BasicTerrainElevationChannel : uint32_t { Red , Alpha , RedGreenBlue } |
enum struct | BasicTerrainTransparencyMode : uint32_t { None , Regular , BlendWithZWrite } |
enum class | FontSelectorFlags { ApplyToChildren , SelfOnly } |
enum class | AssetFlags { None = 0 , InstantiateOnDemand = 1 << 0 , RelativePaths = 1 << 1 , OverrideMaterial = 1 << 2 , CloneMaterial = 1 << 4 } |
Controls asset system's model instance behaviour. More... | |
enum struct | AssetResourceType : uint32_t { Asset , Model } |
Utility function to format a resource index as a filename. More... | |
enum class | ProjectionMode { Perspective = 0 , Orthographic } |
Defines projection modes for the camera. More... | |
enum class | CameraFlags : uint32_t { None = 0 , EnableRender = 1 << 0 , EnablePicking = 1 << 1 , FlipY = 1 << 2 , OverrideClearColor = 1 << 3 } |
enum struct | CaptureMode : unsigned { Off , Scene , ObjectId , ObjectIdColorize , Normals , Depth } |
enum struct | CaptureSceneMode : unsigned { Forward , ForwardHdr , DeferredCausticsHdr } |
enum struct | CaptureFormat : unsigned { PNG , RawARGB , RawFloat } |
enum struct | ClipShapeType : uint32_t { None , Cube , InvertedCube } |
Specifices what kind of shape a clip shape has. More... | |
enum class | LightType { Directional , Point , Spot } |
Defines light types. More... | |
enum class | LightingLayers : uint32_t { None = 0 , Default = 1 << 0 , All = 0xFFFFFFFFu } |
enum class | ShadowUpdate { Default = 0 , Dynamic = 1 , Partial = 2 , Static = 3 , StaticPartial = 4 , None = 5 } |
enum class | SoftShadows { None = 0 , Low , High , Default = High } |
enum class | LodPolicy { None = 0 , CenterDistance , GeometricTolerance } |
Defines policies for controlling level of detail. More... | |
enum struct | GeometricErrorKind { DistanceBased , AreaBased } |
Defines kinds of geometric error calculations. More... | |
enum struct | RenderFlags : uint32_t { None = 0 , SelfVisibility = 1 << 0 , ParentVisibility = 1 << 1 , SpecificVisibility = 1 << 2 , SelfPickable = 1 << 3 , ParentPickable = 1 << 4 , CastShadows = 1 << 5 , CustomMaterial = 1 << 6 , ForcePickable = 1 << 7 , DisableCulling = 1 << 8 , Default = SelfVisibility | ParentVisibility | SpecificVisibility | SelfPickable | ParentPickable | CastShadows , DefaultNoShadows = SelfVisibility | ParentVisibility | SpecificVisibility | SelfPickable | ParentPickable } |
Contains flags to describe rendering behavior. More... | |
enum struct | RenderLayers : uint32_t { None = 0u , Default = 1u << 0 , Ocean = 1u << 1 , Annotations = 1u << 2 , Sky = 1u << 3 , Overlay = 1u << 4 , Controllers = 1u << 5 , AllStandard = 0x0000003Fu , Reserved0 = 1u << 6 , Reserved1 = 1u << 7 , Reserved2 = 1u << 8 , Reserved3 = 1u << 9 , Reserved4 = 1u << 10 , Reserved5 = 1u << 11 , AllReserved = 0x00000FC0u , Custom0 = 1u << 12 , Custom1 = 1u << 13 , Custom2 = 1u << 14 , Custom3 = 1u << 15 , Custom4 = 1u << 16 , Custom5 = 1u << 17 , Custom6 = 1u << 18 , Custom7 = 1u << 19 , Custom8 = 1u << 20 , Custom9 = 1u << 21 , Custom10 = 1u << 22 , Custom11 = 1u << 23 , Custom12 = 1u << 24 , Custom13 = 1u << 25 , Custom14 = 1u << 26 , Custom15 = 1u << 27 , Custom16 = 1u << 28 , Custom17 = 1u << 29 , Custom18 = 1u << 30 , Custom19 = 1u << 31 , AllCustom = 0xFFFFF000u , All = 0xFFFFFFFFu } |
Contains common render layers. More... | |
enum struct | SizeMode { Relative = 0 , Pixels = 1 } |
Sizing mode. More... | |
enum struct | PositionMode { Relative = 0 , Pixels = 1 , World = 2 , Local = 3 } |
Positioning mode. More... | |
enum class | Alignment : uint32_t { Left = 0x00 , Center = 0x01 , Right = 0x02 , Top = 0x00 , Middle = 0x10 , Bottom = 0x20 , TopLeft = Left | Top , TopCenter = Center | Top , TopRight = Right | Top , MiddleLeft = Left | Middle , MiddleCenter = Center | Middle , MiddleRight = Right | Middle , BottomLeft = Left | Bottom , BottomCenter = Center | Bottom , BottomRight = Right | Bottom , Horizontal = 0x0F , Vertical = 0xF0 , Default = TopLeft } |
enum class | VerticalAlignment { Top = 1 , Center = 2 , Bottom = 3 } |
Defines vertical alignment modes for text. More... | |
enum class | HorizontalAlignment { None = 0 , Left = 1 , Right = 2 , Center = 3 } |
Horizontal alignment of overlays. More... | |
enum class | HorizontalJustification { Left = 1 , Right = 2 , None = 3 } |
Horizontal justification modes for text. More... | |
enum struct | MarkerPointSetShape : uint32_t { ViewAlignedDisc , ObjectSpaceFloorDisc , FixedScreenSizeDisc } |
enum class | ShapePrimitiveType { Default = 0 , TriangleList = 1 , TriangleStrip = 2 , DefaultLine = 3 , LineList = 4 , LineStrip = 5 , TriangleListAdjacency = 6 , TriangleStripAdjacency = 7 , LineListAdjacency = 8 , LineStripAdjacency = 9 , PointList = 10 , ShapePrimitiveType_Size } |
enum class | SelectMode { Exclusive = 0 , Toggle , Add } |
enum class | DefaultValueType { Unknown = 0 , Bool , Float , Int , Enum , Vec2 , Vec3 , Vec4 , Mat4 , DVec2 , DVec3 , DVec4 , Quaternion , MaterialInstance , Model , Asset , Mesh , Texture , Gui , String , MultiString , IntArray , FloatArray , Vec2Array , Vec3Array , Vec4Array , Entity , EntityArray , Extension } |
Defines value types for default values. More... | |
enum class | EntityFind { Default = 1 , PartialNameMatch = 1 << 1 , NonRecursive = 1 << 2 , MaxFlag = 1 << 7 } |
Options to findEntity/getEntityFull. More... | |
enum struct | ImageType : int { None = 0 , CheckerBoard , ColorfulCheckerBoard , Dirt , Steel , ColorCube , Sky , SkyCube , SkyRadiance , SkyIrradiance , SkyAmbientIrradiance , SubseaRadiance , GradientRainbow , GradientHeat } |
enum struct | ShapeType : uint32_t { None = 0 , Plane , Sphere , SphereGeoTexSph , SphereGeoTexCyl , Cylinder , Cone , Cube , WireCube , CubeTex2D , CoordSys , CircularArc } |
Shape types generated by mesh generator. More... | |
enum class | InputDeviceType : uint32_t { None = 0 , Keyboard = 1 , Mouse = 2 } |
enum | : uint32_t { GUI_MODE_DEFAULT = 0 , GUI_MODE_TEX_OFFSET_MASK = 255 , GUI_MODE_TEX_TYPE_2D = (0u) << 26 , GUI_MODE_TEX_TYPE_ARRAY = (1u) << 26 , GUI_MODE_TEX_TYPE_CUBE = (2u) << 26 , GUI_MODE_TEX_TYPE_2DMS = (3u) << 26 , GUI_MODE_TEX_TYPE_MASK = (3u) << 26 , GUI_MODE_TEX_CHANNELS_RGB = (0u) << 28 , GUI_MODE_TEX_CHANNELS_ALPHA = (1u) << 28 , GUI_MODE_TEX_CHANNELS_RED = (2u) << 28 , GUI_MODE_TEX_CHANNELS_111R = (3u) << 28 , GUI_MODE_TEX_CHANNELS_MASK = (7u) << 28 , GUI_MODE_MASK = GUI_MODE_TEX_TYPE_MASK | GUI_MODE_TEX_CHANNELS_MASK } |
enum class | EnginePermutationFlags { None = 0 , DepthOnly = 1 << 0 , NoShading = 1 << 1 , ReverseDepth = 1 << 2 , HasBuiltins = 1 << 3 } |
enum class | RenderMode { Normal = 0 , Wireframe = 1 , Box = 3 } |
Defines global rendering modes that can be supported by the renderer. More... | |
enum struct | RenderItemFlags : uint16_t { None = 0 , Custom = 1 << 0 , CastShadows = 1 << 1 , CalculateDepth = 1 << 2 , Sprite = 1 << 3 , AlwaysOnTop = 1 << 4 , Clockwise = 1 << 5 , Transparent = 1 << 6 , Backdrop = 1 << 7 , CustomBucket = 1 << 8 , CustomBounds = 1 << 9 , Custom2 = 1 << 10 , DisableCulling = 1 << 11 , Instanced = 1 << 12 , ObjectBufferSlot = 1 << 13 } |
enum struct | StateChangeFlags : uint16_t { ChangeNone = 0 , ChangeTransform = 1 << 0 , ChangeMesh = 1 << 1 , ChangeMaterialInstance = 1 << 2 , ChangeMaterialVariant = 1 << 3 , ChangeRasterizerState = 1 << 4 , ChangeBlendState = 1 << 5 , ChangeDepthStencilState = 1 << 6 , ChangeLayer = 1 << 7 , ChangeViewport = 1 << 8 , ChangeViewportData = 1 << 9 , ChangeAll = 0xFFFF } |
enum struct | BucketType { Backdrop = 0 , SolidOrderedBack , Solid , SolidOrderedFront , Transparent , Overlay , Custom , Count } |
enum class | BucketMask { BackDrop = 1 << size_t(BucketType::Backdrop) , Transparent = 1 << size_t(BucketType::Transparent) , Solid = (1 << size_t(BucketType::SolidOrderedBack)) | (1 << size_t(BucketType::Solid)) | (1 << size_t(BucketType::SolidOrderedFront)) , Opaque = Solid , Overlay = 1 << size_t(BucketType::Overlay) , Custom = 1 << size_t(BucketType::Custom) , All = ~0 , None = 0 } |
enum class | RenderResourceType : uint8_t { Unknown = 0 , TaskResource , RenderTarget , RenderList , RenderBuffer , RenderTexture , RenderMesh , RenderEffect , RenderMaterial , RenderMaterialInstance } |
enum class | RenderResourceFlags : uint8_t { None = 0 , Persistent = 1 << 0 , Override = 1 << 1 , Owned = 1 << 2 , Active = 1 << 3 , Delayed = 1 << 4 , Failed = 1 << 5 , Released = 1 << 6 } |
enum class | SortFlags { None = 0 , Default = 0 , Depth = 1 << 0 , DrawOrder = 1 << 1 , DrawOrderAndDepth = 1 << 2 } |
enum | EffectDefinitionFlags { None = 0 , Custom = 0x0001 } |
enum class | MaterialDefinitionFlags : uint32_t { None = 0 , IsTemplate = 1 << 0 } |
enum class | MaterialLoadFlags : uint32_t { None = 0 , DelayVariantLoading } |
Material loading flags. More... | |
enum class | BlendMode { Blend = 0 , Add , PremultipliedBlend , AlphaToCoverage , None , Zero , One_One_Zero_InverseSourceAlpha , InverseSourceAlpha_SourceAlpha , Count } |
Defines blending modes for rendering. More... | |
enum class | DepthMode { Default = 0 , NoWrite = 1 , AlwaysWrite = 2 , Disabled = 3 , Count } |
Defines common depth stencil modes. More... | |
enum class | DepthFunc { Less = 0 , Always = 1 , LessOrEqual = 2 , NotEqual = 3 , Equal = 4 , Count } |
Defines common depth functions. More... | |
enum class | CullMode { None = 0 , Back , Front } |
Defines primitive culling modes. More... | |
enum class | TransparencyMode { None = 0 , Off = None , Regular = 1 , On = Regular , Auto , Alpha } |
enum struct | MaterialPropertyFlags : uint8_t { None = 0 , sRGB = 1 << 0 , Normalized = 1 << 1 , PartitionOfUnity = 1 << 2 } |
enum class | TextureDimensions { Texture2D = 0 , TexureCube = 1 , Texture3D = 2 , Texture2DArray = 3 } |
Texture dimensions. More... | |
enum class | MaterialDataType { Unknown = 0 , Float , Float2 , Float3 , Float4 , Float4x4 , Float4Array , Float4x4Array , Int , Int2 , Int3 , Int4 , UInt , UInt2 , UInt3 , UInt4 , Bool , Texture , VFACE , ClipDistance , SV_IsFrontFace , SV_InstanceID , Position } |
Defines available data types for material properties. More... | |
enum class | ActivationResult : uint16_t { Success = 0x0001 , Failure = 0x0002 , Postponed = 0x0004 , Delayed = 0x0008 } |
Defines results for resource activation. More... | |
enum class | ResourceFlags : uint32_t { None = 0 , Initialized = 1 << 0 , Queued = 1 << 1 , Loading = 1 << 2 , Loaded = 1 << 3 , Changed = 1 << 4 , Active = 1 << 5 , Resident = 1 << 6 , Static = 1 << 7 , Orphaned = 1 << 8 , Deleted = 1 << 9 , Locked = 1 << 10 , Dependency = 1 << 11 , Watched = 1 << 12 , Error = 1 << 13 , FailedLoad = 1 << 14 , FailedActivation = 1 << 15 , Proxy = 1 << 16 , KeepStorage = 1 << 17 } |
Flags for describing resource attributes. More... | |
enum class | ResourceTypes : uint32_t { Unknown = 0 , Asset , Model , Texture , Effect , Material , MaterialInstance , Mesh , Buffer , Font , Gui } |
Resource types. More... | |
enum class | ResourceError : uint32_t { None = 0 } |
enum class | ResourceLoadFlags { None = 0 , ForceSynchronous = 1 << 0 , Reload = 1 << 1 , AutoReload = 1 << 2 , NoDefaultName = 1 << 3 , ForceUnique = 1 << 4 , DoNotCache = 1 << 5 , DoNotStoreSource = 1 << 6 , ResourceSpecificFlag = 1 << 16 } |
Flags for describing how to load a resource. More... | |
enum class | TextureLoadFlags { None = int(ResourceLoadFlags::None) , ForceSynchronous = int(ResourceLoadFlags::ForceSynchronous) , Reload = int(ResourceLoadFlags::Reload) , AutoReload = int(ResourceLoadFlags::AutoReload) , NoDefaultName = int(ResourceLoadFlags::NoDefaultName) , ForceUnique = int(ResourceLoadFlags::ForceUnique) , DoNotCache = int(ResourceLoadFlags::DoNotCache) , First = int(ResourceLoadFlags::ResourceSpecificFlag) , Flip = First , LinearColorSpace = First << 1 , NoMipMaps = First << 3 , NoDelete = First << 4 , ColorSpaceFromLoadInfo = First << 5 } |
Texture loading flags. May be combined with resource load flags. More... | |
enum class | ModelLoadFlags { None = int(ResourceLoadFlags::None) , ForceSynchronous = int(ResourceLoadFlags::ForceSynchronous) , Reload = int(ResourceLoadFlags::Reload) , AutoReload = int(ResourceLoadFlags::AutoReload) , NoDefaultName = int(ResourceLoadFlags::NoDefaultName) , ForceUnique = int(ResourceLoadFlags::ForceUnique) , DoNotCache = int(ResourceLoadFlags::DoNotCache) , First = int(ResourceLoadFlags::ResourceSpecificFlag) , NeedsTangents = First , AutomaticTransparency = First << 1 , ForceTwoSidedMaterial = First << 2 , DisableOptimization = First << 3 , SkipMaterials = First << 4 , NoFlipTexcoords = First << 5 , CustomExtensionFlag = NeedsTangents << 8 } |
Model loading flags. May be combined with resource loading flags. More... | |
enum class | AssetLoadFlags { None = int(ResourceLoadFlags::None) , ForceSynchronous = int(ResourceLoadFlags::ForceSynchronous) , Reload = int(ResourceLoadFlags::Reload) , AutoReload = int(ResourceLoadFlags::AutoReload) , NoDefaultName = int(ResourceLoadFlags::NoDefaultName) , ForceUnique = int(ResourceLoadFlags::ForceUnique) , DoNotCache = int(ResourceLoadFlags::DoNotCache) , First = int(ResourceLoadFlags::ResourceSpecificFlag) , ClearScene = First , NoDefault = First << 1 } |
Asset and Scene loading flags. May be combined with resource loading flags. More... | |
enum class | ResourceStoreFlags { None = 0 , NoCachedContent = 1 << 0 , QueryOnly = 1 << 1 , PreferUncachedContent = 1 << 2 } |
enum class | ResourceProtocol { None = 0 , File = 1 , Default = File , Cache = 2 , Archive = 3 , Http = 4 , Other = 5 } |
enum class | ShaderVariantType { None = 0 , Bool , Int , Enum , Format , String } |
enum class | ShaderVarientFlags { None = 0 , DepthOnly = 1 << 0 , NoShading = 1 << 1 , ReverseDepth = 1 << 2 } |
enum class | PickingFlags : uint32_t { None = 0 , PickSprites = 1 << 0 , ReturnChildEntity = 1 << 1 , RemoveDuplicateEntities = 1 << 2 , RemoveDuplicates = 1 << 3 , FlatTexcoordInterpolation = 1 << 4 , AddInstanceTexcoords = 1 << 5 } |
Options for COGS picking. More... | |
enum class | PicksReturned { Closest , AllUnsorted , AllSorted } |
 * Options for returning picking hits. More... | |
enum class | ScriptFlags { None = 0 , Unknown = 1 << 0 , JavaScript = 1 << 1 , Lua = 1 << 2 , SourceText = 1 << 3 , SourcePath = 1 << 4 } |
enum class | ScriptValueType { Undefined = 0 , Object = 1 , String = 2 , Proxy = 3 } |
enum class | AssetWriteFlags : uint32_t { None = 0 , Geometry = 1 , PrettyPrint = 2 , Strip = 4 , Compress = 8 , Hierarchy = 16 } |
Flags that control serialization of assets. More... | |
enum class | EntityParentMode { None = 0 , Default , TransformOnly } |
enum class | JsonParseFlags { None = 0 , NoCachedContent = 1 << 0 , Compressed = 1 << 1 , PreferUncachedContent = 1 << 2 } |
enum struct | WriteModelFlags : uint32_t { NONE = 0 , COMPRESS_ZSTD = 1u<<0 , COMPRESS_ZSTD_AS_FILE = 1u<<1 , COMPRESS_MAX = 1u<<2 , SEPARATE_ROOT_NODE_SECTIONS = 1u<<3 , EMBED_TEXTURES = 1u<<4 } |
enum struct | CPUFeature : uint32_t { None = 0 , All = ~0u } |
enum struct | PlatformPreference : uint32_t { None = 0 , AsyncFetch = (1<<0) , BackgroundTasks = (1<<1) } |
enum struct | PropertyType { Unknown = 0 , FirstInlineType , Bool = FirstInlineType , Integer , Int2 , UnsignedInteger , UInt2 , Float , Float2 , Double , StringRef , LastInlineType , String , DoubleArray , FloatArray , IntArray , UIntArray , LastType } |
enum struct | QualityRequest { AtTarget , HasSlack , ThrottleDown , RapidBackoff } |
enum class | MetricType : unsigned int { Idle , Frame , PreRender , Present , MetricTypeCount } |
enum class | TaskFlags : uint16_t { None = 0 , Group = 1 } |
enum class | VariableFlags { None = 0 , Empty = 1 << 0 , Static = 1 << 1 } |
Variable flags, specifying variable behavior. More... | |
enum struct | MeshRenderDataFlags { None = 0 , LocalBoundsOverride = 1 << 0 , WorldBoundsOverride = 1 << 2 } |
enum struct | FrustumPlanes : uint8_t { InsideNone = 0 , InsidePosX = 1 , InsideNegX = 2 , InsidePosY = 4 , InsideNegY = 8 , InsidePosZ = 16 , InsideNegZ = 32 , InsideAll = 63 , InsideFar = 16 , InsideNear = 32 , InsideAllButNear = 31 , InsideAllButFar = 47 } |
enum struct | ParsedValueTextureFlags { None = 0 , LinearSampler = 1<<0 } |
enum struct | SimplexResult : int { OptimalSolutionFound = 1 , NoFeasibleSolutions = 0 , TooManyIterations = -1 , BlandsFailed = -2 } |
enum class | ParsedDataType { Unknown = 0 , Object , String , Float , Float2 , Float3 , Float4 , Float4x4 , Int , Int2 , Int3 , Int4 , UInt , UInt2 , UInt3 , UInt4 , Bool , Double , Number = Double , Texture2D , ConstantBuffer , Buffer , Count } |
enum class | AudioState { None = 0 , StartPlaying , Playing , StopPlaying , Stopped } |
enum class | CameraEasingMode : uint32_t { Linear , QuadraticIn , QuadraticOut , QuadraticInOut , CubicIn , CubicOut , CubicInOut , QuarticIn , QuarticOut , QuarticInOut , QuinticIn , QuinticOut , QuinticInOut , SinusoidalIn , SinusoidalOut , SinusoidalInOut , ExponentialIn , ExponentialOut , ExponentialInOut , CircularIn , CircularOut , CircularInOut , ElasticIn , ElasticOut , ElasticInOut , BackIn , BackOut , BackInOut , BounceIn , BounceOut , BounceInOut , SIZE } |
enum class | Icon { None = 0 , New , Open , Save , Undo , Redo , Select , Move , Rotate , Scale , Plus , Minus , Info , Gears , Eye , Solid , Wireframe , BoundingBox , PivotLocal , PivotCenter , Hide , HideUnselected , ShowAll , SelectFurthestAway , IconInvertVisibility } |
enum class | EditingMode { None = 0 , Select , Translate , Rotate , Scale } |
enum class | EditingPivot { ObjectPivot = 0 , ObjectCenter , GroupCenter , Default = ObjectCenter } |
enum class | KeyboardModifiers { None = 0 , Control = 1 << 0 , Shift = 1 << 1 , Alt = 1 << 2 } |
Current keyboard modifiers. More... | |
enum class | InputEventType { Keyboard , Mouse , Reset } |
Type of data in input event queue. More... | |
enum class | GuiPointerSource { Auto = 0 , Mouse , ProjectedMouse , ProjectedCenter , Projector } |
enum struct | Image360Notification { None , Ready , FetchingBegin , FetchingEnd } |
enum struct | OGC3DTilesNotification { None , TilesetInitializing , TilesetReady } |
enum struct | PotreeNotification { None = 0 , FetchingBegin = 2 , FetchingEnd = 3 } |
enum struct | PotreeColoring : uint32_t { Base , Color , Intensity , Level } |
enum struct | PotreeShading : uint32_t { Flat , Basic } |
enum struct | PotreePointShape : uint32_t { Square , Disc , Paraboloid , Sphere } |
enum struct | PotreePointSizing : uint32_t { FixedSize , DistanceScaled , DistanceAndDensityScaled } |
enum struct | PotreeDebugBoxes : uint32_t { None , ActiveCells , ActiveLeafCells } |
enum struct | PotreeOriginPolicy : uint32_t { None , CenterOnOrigin , CenterOnOriginAdjustCoordinate } |
enum struct | PotreeState { Uninitialized , Error , RequestedCloudJS , ParsedCloudJs , Running } |
enum struct | PotreeeType { None , Double , Float , Int8 , UInt8 , Int16 , UInt16 , Int32 , UInt32 , Int64 , UInt64 } |
enum struct | PotreeEnconding { Default , ZStd , Brotli } |
enum struct | PotreeAttributes { POSITION_CARTESIAN = 0 , RGBA_PACKED , RGB_U8_PACKED , RGB_U16_PACKED , NORMAL , NORMAL_SPHEREMAPPED , NORMAL_OCT16 , INTENSITY_U16 , CLASSIFICATION , FILLER_1B , COUNT } |
enum struct | PotreeVertexLayout { POSITION , POSITION_COLOR , POSITION_NORMAL , POSITION_COLOR_NORMAL , POSITION_INTENSITY , POSITION_COLOR_INTENSITY , POSITION_NORMAL_INTENSITY , POSITION_COLOR_NORMAL_INTENSITY , POSITION_CLASSIFICATION , POSITION_COLOR_CLASSIFICATION , POSITION_NORMAL_CLASSIFICATION , POSITION_COLOR_NORMAL_CLASSIFICATION , POSITION_INTENSITY_CLASSIFICATION , POSITION_COLOR_INTENSITY_CLASSIFICATION , POSITION_NORMAL_INTENSITY_CLASSIFICATION , POSITION_COLOR_NORMAL_INTENSITY_CLASSIFICATION , COUNT } |
enum class | ArrowScalingMode : int { Off , Normal , PerBand } |
Different modes for scaling surface current arrows based on the speed of the current. More... | |
enum class | TransferFunction : uint32_t { Linear , BT601 , sRGB , Gamma } |
enum class | ColourSpace : uint32_t { BT601 , BT601Full , BT709 , BT709Full } |
enum struct | Codec { None = -1 , H264 , HEVC } |
enum struct | ChromaFormat : unsigned { Monochrome , Chroma420 , Chroma422 , Chroma444 } |
enum struct | VideoDecoderPresentMode { Smooth = 1 , Realtime , Latest } |
enum | PictureType { UNKNOWN , P , B , I , IDR , BI , SKIPPED , INTRA_REFRESH , NONREF_P } |
enum struct | H264Profile : unsigned { Baseline , Main , High } |
enum struct | H264Preset : unsigned { Default , HighQuality , HighPerformance , LowLatencyHighDefault , LowLatencyHighQuality , LowLatencyHighPerformance , LosslessDefault , LosslessHighPerformance } |
enum struct | BFrameReference : unsigned { Disabled , Each , Middle } |
Functions | |
ENABLE_ENUM_FLAGS (AssetFlags) | |
COGSCORE_DLL_API std::string | createAssetResourcePathFromIndex (uint32_t resourceIndex, AssetResourceType assetResourceType) |
ENABLE_ENUM_FLAGS (CameraFlags) | |
ENABLE_ENUM_FLAGS (LightingLayers) | |
ENABLE_ENUM_FLAGS (RenderFlags) | |
ENABLE_ENUM_FLAGS (RenderLayers) | |
ENABLE_ENUM_FLAGS (Alignment) | |
template<typename T > | |
void | applyFieldValue (void *object, const Reflection::Field *field, T &value) |
void | updateMaterialInstance (Context *context, MaterialInstance *materialInstance, const MaterialInstanceDefinition &value) |
Apply material instance values. | |
void | applyMaterialInstanceValue (Context *context, void *component, const Reflection::Field *field, const FieldValue &value) |
void | applyFieldValues (class Context *context, std::span< FieldValue > entityDefinition, ComponentModel::Entity *entity) |
Apply defaults from the given entityDefinition to the given entity. | |
void COGSCORE_DLL_API | createDefaultEntityDefinitions (class EntityStore *entityStore) |
Create the default entity definitions supported by Cogs. | |
void COGSCORE_DLL_API | createEntityDefinition (const std::string &name, std::vector< std::string > components, class EntityStore *entityStore) |
Create a simple entity definition with the given name and list of components. | |
ENABLE_ENUM_FLAGS (EntityFind) | |
constexpr size_t | hash (const ShapeDefinition &definition, size_t hashValue=Cogs::hash()) |
COGSCORE_DLL_API void | tesselate (const glm::vec3 *contours, const size_t count, const size_t stride, std::vector< uint32_t > &triangleIndexes, uint32_t base=0) |
COGSCORE_DLL_API std::vector< int32_t > | tesselatePolygons (std::vector< int32_t > &inputIndexes, Mesh *mesh) |
COGSCORE_DLL_API void | reindex (const std::vector< int32_t > &inputIndexes, Mesh *mesh, bool isLine) |
bool | intersectMesh (std::vector< RayIntersectionHit > &hits, std::vector< FrustumPlanes > &scratch, const glm::mat4 &localPickMatrix, const Mesh &mesh, uint32_t startIndex=0, uint32_t vertexCount=-1, uint32_t subMeshIndex=-1) |
COGSCORE_DLL_API bool | frustumClassifyVertex (FrustumPlanes *dstPtr, const glm::mat4 &matrix, const glm::vec3 *positions, const size_t count) |
size_t | getAllocatedBytes (const Memory::Allocator *allocator) |
size_t | getAllocationCount (const Memory::Allocator *allocator) |
size_t | getPeakBytes (const Memory::Allocator *allocator) |
size_t | getPeakCount (const Memory::Allocator *allocator) |
COGSCORE_DLL_API MaterialInstanceHandle | getDefaultMaterialInstance (Context *context) |
COGSCORE_DLL_API void | drawUnitWireBox (RenderTaskContext *taskContext, DrawContext *drawContext, const RenderItem *item, const glm::mat4 &M, unsigned color) |
COGSCORE_DLL_API void | drawOneOneWireBox (RenderTaskContext *taskContext, DrawContext *drawContext, const RenderItem *item, const glm::mat4 &M, unsigned color) |
COGSCORE_DLL_API void | drawCoordSys (RenderTaskContext *taskContext, DrawContext *drawContext, const RenderItem *item, const glm::mat4 &M, bool overlay=false) |
size_t | getCode (EffectDescription &desc) |
void | changeSuffix (std::string &dst, const std::string &from, const std::string &to) |
void | initializeEngineBuffers (IBuffers *buffers, ICapabilities *capabilites, EngineBuffers &engineBuffers) |
void COGSCORE_DLL_API | updateEngineBuffers (RenderTaskContext *context, const RenderTarget *renderTarget, const CameraData *viewportData, const std::array< glm::vec4, 6 > *clipEquations) |
void COGSCORE_DLL_API | updateViewportBuffer (RenderTaskContext *context, BufferHandle &sceneBufferHandle, BufferHandle &viewBufferHandle, const RenderTarget *renderTarget, const CameraData *viewportData, const std::array< glm::vec4, 6 > *clipEquations) |
ENABLE_ENUM_FLAGS (EnginePermutationFlags) | |
void | aboutCogs (class Context *, bool *show) |
void | showEntityDefinition (SceneDefinition &scene, const SceneEntityDefinition &definition) |
void | assetInspector (Context *context) |
void | assetInstanceInspector (Context *context) |
void | entityInspector (class Context *context, bool *show) |
void | showEntities (Context *context, std::span< const EntityPtr > entities, std::string_view entityNamePattern, std::string_view componentNamePattern) |
void COGSCORE_DLL_API | showCollapsableEntityInspector (class Context *context, const ComponentModel::Entity *entity, std::string_view entityNamePattern, std::string_view componentNamePattern, bool showBorder=true) |
void COGSCORE_DLL_API | showEntityInspector (Context *context, const ComponentModel::Entity *entity, std::string_view entityNamePattern, std::string_view componentNamePattern, bool showBorder=true) |
void COGSCORE_DLL_API | showComponentInspector (Context *context, ComponentModel::Component *component, std::string_view entityNamePattern, std::string_view componentNamePattern, bool showBorder=true) |
void COGSCORE_DLL_API | showFieldInspector (Context *context, ComponentModel::Component *component, FieldId fieldId, std::string_view entityNamePattern, std::string_view componentNamePattern, bool showBorder=true) |
void | gammaDebugger (class Context *, bool *show) |
void | guiBegin (const std::string &title, bool *show) |
void | guiEnd () |
std::string | getUniqueHeader (const std::string &header) |
void | appendBytesize (std::string &out, size_t byteSize) |
bool | containsInvariantCase (std::string_view str, std::string_view substr) |
bool | findHierarchyWithMatch (const Cogs::ComponentModel::Entity &entity, std::string_view entityNamePattern, std::string_view componentNamePattern) |
COGSCORE_DLL_API void | showTexture (const Context *context, class Renderer *renderer, Texture *texture, bool showTitle=false) |
COGSCORE_DLL_API void | showRenderTexture (const Context *context, class Renderer *renderer, const struct RenderTexture *texture, bool showTitle=false) |
COGSCORE_DLL_API bool | showMatrix (const std::string &header, glm::mat4 &m) |
template<typename T > | |
bool | showEnum (const std::string &header, T ¤tItem) |
Show enumerator with edit option. | |
template<typename T > | |
bool | showArray1D (const std::string &header, std::span< T > array) |
template<typename T > | |
bool | showArray2D (const std::string &header, std::span< T > array) |
template<typename T > | |
bool | showArray3D (const std::string &header, std::span< T > array) |
template<typename T > | |
bool | showArray4D (const std::string &header, std::span< T > array) |
COGSCORE_DLL_API bool | showArray3D (const std::string &header, std::span< glm::vec3 > array) |
COGSCORE_DLL_API void | showMesh (const Context *context, Mesh *mesh, const std::string &header) |
COGSCORE_DLL_API void | showMaterialOptions (const Context *context, MaterialOptions *options, const std::string &header) |
COGSCORE_DLL_API void | showMaterialVariants (MaterialInstance *material) |
COGSCORE_DLL_API void | showMaterialProperties (MaterialInstance *material) |
COGSCORE_DLL_API void | showMaterialInstance (const Context *context, struct MaterialInstance *material, const std::string &header) |
COGSCORE_DLL_API void | showModel (const Context *context, Model *model, const std::string &header) |
void | assetInspector (class Context *context, bool *show) |
void | assetQueueInspector (class Context *context, bool *show) |
void | boundsInspector (class Context *context, bool *show) |
void | fontInspector (class Context *context, bool *show) |
void | inputInspector (class Context *context, bool *show) |
void | materialInspector (class Context *context, bool *show) |
void | materialInstanceInspector (class Context *context, bool *show) |
void | meshInspector (class Context *context, bool *show) |
void | bufferInspector (class Context *context, bool *show) |
void | engineInspector (class Context *context, bool *show) |
void | modelInspector (class Context *context, bool *show) |
void | renderingStatsInspector (class Context *context, bool *show) |
void | pipelineInspector (class Context *context, bool *show) |
void | permutationInspector (class Context *context, bool *show) |
void | profileInspector (class Context *context, bool *showProfiler) |
void | resourceStoreInspector (class Context *context, bool *show) |
void | scriptConsole (class Context *context, bool *show) |
void | scriptInspector (class Context *context, bool *show) |
void | shadowMapInspector (class Context *context, bool *show) |
void | textureInspector (class Context *context, bool *show) |
COGSCORE_DLL_API void | variableInspector (class Context *context, bool *show) |
void | taskManagerInspector (Context *context, bool *show) |
int | inputCallback (ImGuiInputTextCallbackData *) |
RenderTaskContext | getRenderTaskContext (Renderer *renderer) |
DrawContext | getDrawContext (RenderTaskContext *renderContext) |
ENABLE_ENUM_FLAGS (RenderItemFlags) | |
ENABLE_ENUM_FLAGS (StateChangeFlags) | |
ENABLE_ENUM_FLAGS (BucketMask) | |
bool | hasBucket (BucketMask bucketMask, BucketType bucket) |
bool | evaluateCondition (Context *context, const StringView &condition, const RenderPipelineDefinition &pipelineDefinition, const std::vector< ParsedValue > &attributes) |
void | evaluateTaskDependencies (std::list< RenderTask * > tasks, const RenderTaskResources &globalResources, RenderPipeline &pipeline) |
bool | addVariable (ExpressionContext *expressionContext, StringView name, const ParsedValue &p) |
RenderBuffer * | createRenderBuffer (RenderResources *renderResources, const std::string &resourceName, const RenderResourceDefinition &r, ExpressionContext *expressionContext) |
RenderTexture * | createRenderTexture (RenderTaskContext *renderContext, RenderPipeline &pipeline, RenderTaskResources &pipelineResources, const std::string &resourceName, const std::string &prefix, const RenderResourceDefinition &r, ExpressionContext *expressionContext) |
bool | handleResourceAlias (const RenderResourceDefinition &r, const std::string &resourceName, const std::string &prefix, RenderTaskResources &pipelineResources) |
bool | createPipelineRecursive (Cogs::Core::RenderTaskContext *renderContext, const Cogs::Core::RenderPipelineDefinition &pipelineDefinition, Cogs::Core::RenderTaskResources &pipelineResources, Cogs::Core::RenderPipeline &pipeline, const Cogs::Core::PipelineOptions &options, Cogs::Core::ExpressionContext *expressionContext, const std::vector< ParsedValue > &attributes, const std::string &prefix, const std::string &prefixOuter) |
size_t | pipelineHash (RenderTaskContext *renderContext, const RenderPipeline &pipeline) |
bool | createPipeline (RenderTaskContext *renderContext, const RenderPipelineDefinition &pipelineDefinition, RenderTaskResources &pipelineResources, RenderPipeline &pipeline, const StringView &path, const CameraData *pushCameraData, const PipelineOptions &options=PipelineOptions(), const std::string &prefix="") |
void | releasePipeline (RenderTaskContext *renderContext, RenderPipeline &pipeline) |
bool | isPipelineFresh (RenderTaskContext *renderContext, const RenderPipeline &pipeline) |
ENABLE_ENUM_FLAGS (RenderResourceFlags) | |
template<typename Handle , typename Resource > | |
Resource * | createGpuResource (const Handle &handle, Collections::Pool< Resource > &resources, RenderResources *) |
template<typename RenderResourceType > | |
RenderResource * | releaseGpuResource (ResourceBase *resource, Renderer *renderer) |
void | applyMaterialProperties (const DrawContext *drawContext, const Material *material, const ConstantBufferBindingHandle &bufferBinding, const BufferHandle &constantBuffer) |
COGSCORE_DLL_API void | updateSceneBindings (const DrawContext *drawContext, const CameraData *cameraData, const EffectBinding *bindings) |
COGSCORE_DLL_API void | updateSceneBindings (const RenderTaskContext *taskContext, const EffectBinding *bindings) |
COGSCORE_DLL_API void | updateEnvironmentBindings (const DrawContext *drawContext, const EffectBinding *bindings) |
COGSCORE_DLL_API void | updateMaterialBindings (const DrawContext *drawContext, const RenderMaterialInstance *renderMaterialInstance, const EffectBinding *bindings, bool perInstance) |
COGSCORE_DLL_API void | applyMaterialPermutation (RenderTaskContext *taskContext, const DrawContext *drawContext, const EffectBinding *bindings, const RenderMaterialInstance *renderMaterialInstance) |
COGSCORE_DLL_API void | applyMaterialInstance (const DrawContext *drawContext, const EffectBinding *bindings, const RenderMaterialInstance *renderMaterialInstance) |
COGSCORE_DLL_API void | applyMaterialPerObject (const DrawContext *drawContext, const RenderMaterialInstance *renderMaterialInstance, const RenderItem &renderItem) |
size_t | populateObjectBuffer (const DrawContext *drawContext, const RenderItem *items, size_t o, size_t n) |
void | applyMaterialPerObjectBatched (const DrawContext *drawContext, const RenderMaterialInstance *renderMaterialInstance, const RenderItem &renderItem, size_t o) |
const MaterialInstance * | getControllingInstance (const MaterialInstance *instance, MaterialFlags::EMaterialFlags overrideFlag) |
const MaterialInstance * | getControllingInstance (const MaterialInstance *instance, MaterialFlags overrideFlag) |
RenderPassOptions | initRenderPassOptions (const RenderItem &renderBlock, const CameraData &camData) |
uint16_t | getRasterizerState (Renderer *renderer, const RenderItem &renderBlock, const RenderPassOptions &passOptions, bool flipWindingOrder, bool forceBlockWinding) |
ENABLE_ENUM_FLAGS (SortFlags) | |
void | getTransparencyState (RenderStates &, const MaterialInstance *materialInstance, RenderItem &renderItem) |
RenderItemFlags | getMaterialFlags (const MaterialInstance *materialInstance) |
template<typename ResourceType > | |
Collections::Pool< ResourceType > & | getPool () |
template<typename TaskType > | |
TaskType * | createTask (RenderTaskContext *renderContext, bool initialize=true) |
void | freeTask (RenderTask *task, RenderTaskContext *renderContext) |
void | setProcessTaskEffectParameter (RenderTaskContext *renderContext, std::list< std::unique_ptr< SubContext > > &subContexts, ExpressionContext *expressionContext, ProcessTask *task, const ParsedValue ¶meter) |
RenderTaskParameters | parseParameters (RenderTaskContext *renderContext, const RenderTaskDefinition &taskDefinition, const PipelineOptions &options) |
COGSCORE_DLL_API RenderTask * | createRenderTask (RenderTaskContext *taskContext, const RenderTaskDefinition &taskDefinition, std::list< std::unique_ptr< Cogs::Core::SubContext > > &subContexts, ExpressionContext *expressionContext, const PipelineOptions &options=PipelineOptions()) |
void | destroyRenderTask (RenderTaskContext *renderContext, RenderTask *task) |
void COGSCORE_DLL_API | addTaskType (const StringView &key, TaskCreator creator, TaskDestroyer destroyer) |
void | freeTasks (std::vector< RenderTask * > &tasks, RenderTaskContext *renderContext) |
std::vector< std::string > | getResourceManifest (class Context *context) |
void | getCharacterQuad (const Font::Character *chardata, int pw, int ph, int charIndex, float *xPos, float *yPos, Font::BakedCharacter *q, int openGLFill, int alignToInteger=0) |
void COGSCORE_DLL_API | enforcePropertyFlags (const MaterialProperty &prop, MaterialPropertyFlags flags, void *data) |
bool | applyConstantBuffers (class Context *context, const MaterialProperties &materialProperties, ConstantBuffers &constantBuffers) |
COGSCORE_DLL_API bool | applyMaterialProperties (class Context *context, const MaterialProperties &materialProperties, Material &material) |
bool | applyMaterialDefinition (class Context *context, const MaterialDefinition &materialDefinition, Material &material) |
ENABLE_ENUM_FLAGS (MaterialDefinitionFlags) | |
void | applyMaterialOption (MaterialOptions &options, const StringView &key, const StringView &value) |
ENABLE_ENUM_FLAGS (MaterialPropertyFlags) | |
bool | isLine (PrimitiveType::EPrimitiveType primitiveType) |
Check if the given primitive type represents lines. | |
Cogs::Geometry::BoundingBox COGSCORE_DLL_API | calculateBounds (Mesh *mesh) |
Calculate a bounding box for the given mesh. | |
Cogs::Geometry::BoundingBox COGSCORE_DLL_API | calculateBounds (Mesh *mesh, uint32_t startIndex, uint32_t vertexCount) |
void COGSCORE_DLL_API | generateMeshNormals (Mesh *mesh) |
Generate normals. | |
void COGSCORE_DLL_API | generateMeshTangents (Mesh *mesh) |
Generate tangents. | |
std::span< const glm::vec3 > COGSCORE_DLL_API | extractSemanticStreamVec3 (Memory::MemoryBuffer &backing, MeshHandle mesh, const Cogs::ElementSemantic semantic, size_t semanticIndex=0) |
std::span< const uint32_t > COGSCORE_DLL_API | extractIndexStreamUint32 (Memory::MemoryBuffer &backing, MeshHandle mesh) |
ENABLE_ENUM_FLAGS (ResourceFlags) | |
ENABLE_ENUM_FLAGS (ResourceLoadFlags) | |
ENABLE_ENUM_FLAGS (TextureLoadFlags) | |
ENABLE_DERIVED_FLAGS (TextureLoadFlags, ResourceLoadFlags) | |
ENABLE_ENUM_FLAGS (ModelLoadFlags) | |
ENABLE_DERIVED_FLAGS (ModelLoadFlags, ResourceLoadFlags) | |
ENABLE_ENUM_FLAGS (AssetLoadFlags) | |
ENABLE_DERIVED_FLAGS (AssetLoadFlags, ResourceLoadFlags) | |
void | registerResourceFlagTypes () |
template<typename T > | |
bool | HandleIsValid (const ResourceHandle_t< T > &handle) |
Check if the given resource is valid, that is not equal to NoHandle or InvalidHandle. | |
bool | HandleIsValid (const ResourceHandleBase &handle) |
constexpr ResourceTypes | getResourceType (const ResourceBase *) |
constexpr ResourceTypes | getResourceType (const Asset *) |
constexpr ResourceTypes | getResourceType (const Model *) |
constexpr ResourceTypes | getResourceType (const Texture *) |
constexpr ResourceTypes | getResourceType (const Effect *) |
constexpr ResourceTypes | getResourceType (const Material *) |
constexpr ResourceTypes | getResourceType (const MaterialInstance *) |
constexpr ResourceTypes | getResourceType (const BufferResource *) |
constexpr ResourceTypes | getResourceType (const Mesh *) |
constexpr ResourceTypes | getResourceType (const Font *) |
ENABLE_ENUM_FLAGS (ResourceStoreFlags) | |
bool | buildEffectWebGPU (class Context *context, std::vector< std::pair< std::string, std::string > > &definitions, MaterialDefinition &materialDefinition, const EnginePermutation &permutation, const uint32_t multiViewCount) |
bool | buildEffectES3 (class Context *context, std::vector< std::pair< std::string, std::string > > &definitions, MaterialDefinition &materialPermutation, const EnginePermutation &permutation, const uint32_t multiViewCount) |
bool | buildEffect (class Context *context, std::vector< std::pair< std::string, std::string > > &definitions, const MaterialDefinition &materialPermutation, const EnginePermutation &permutation) |
void | updateSkeletonPose (Skeleton &skeleton) |
template<typename Element > | |
TextureFormat | getFormat () |
template<> | |
TextureFormat | getFormat< glm::u8vec4 > () |
template<> | |
TextureFormat | getFormat< glm::vec3 > () |
template<> | |
TextureFormat | getFormat< glm::vec4 > () |
ENABLE_ENUM_FLAGS (ShaderVarientFlags) | |
float | getDepth (class Context *context, const EntityId id, const glm::vec3 position) |
ENABLE_ENUM_FLAGS (PickingFlags) | |
template<typename ComponentType , typename MemberType , class Recurse > | |
void | applyRecursiveFieldChange (ComponentModel::Entity *entity, MemberType ComponentType::*member, MemberType value, Recurse recurse) |
ENABLE_ENUM_FLAGS (ScriptFlags) | |
void | readTemplates (Context *context, const Value &jsonTemplates, AssetLoadFlags) |
bool | readExtensions (Context *, const Value &jsonExtensions, AssetLoadFlags) |
bool | readImports (Context *context, const Value &jsonImports, AssetLoadFlags flags, ComponentModel::Entity *root) |
bool COGSCORE_DLL_API | readAsset (class Context *context, StringView fileName, AssetLoadFlags flags=AssetLoadFlags::None, ComponentModel::Entity *root=nullptr) |
bool COGSCORE_DLL_API | readAssetFromString (class Context *context, StringView contents, AssetLoadFlags flags=AssetLoadFlags::None, ComponentModel::Entity *root=nullptr) |
bool COGSCORE_DLL_API | readAssetDefinitionFromFile (class Context *context, StringView fileName, AssetDefinition &assetDefinition, bool compressed=false) |
bool | readAssetDefinitionFromFileContents (class Context *context, std::unique_ptr< FileContents > contents, AssetDefinition &assetDefinition, bool compressed=false) |
ENABLE_ENUM_FLAGS (AssetWriteFlags) | |
bool COGSCORE_DLL_API | writeAsset (class Context *context, StringView fileName, AssetWriteFlags flags=AssetWriteFlags::None, ComponentModel::Entity *root=nullptr) |
bool COGSCORE_DLL_API | writeAsset (class Context *context, const char *path, AssetHandle asset, AssetWriteFlags writeFlags) |
COGSCORE_DLL_API EntityPtr | createEntity (EntityCreationContext &entityContext, const SceneEntityDefinition &definition) |
COGSCORE_DLL_API ComponentModel::Entity * | createEntity (Context *context, SceneDefinition &scene, const SceneEntityDefinition &definition, Cogs::ComponentModel::Entity *parent=nullptr) |
void | readMaterialInstanceField (Context *context, const Value &value, FieldValue &fieldValue, ExpressionContext *ec) |
bool COGSCORE_DLL_API | readFieldValue (Context *context, const Value &jsonValue, const Reflection::Type &type, const StringView &fieldName, std::vector< FieldValue > &fieldValues, ExpressionContext *ec) |
bool COGSCORE_DLL_API | readFieldValues (Context *context, const Value &jsonValue, const StringView &componentName, std::vector< FieldValue > &fieldValues, ExpressionContext *ec) |
void COGSCORE_DLL_API | readEntityDefaults (Context *context, const Value &value, std::vector< FieldValue > &defaultValues, ExpressionContext *ec) |
void COGSCORE_DLL_API | readEntityDefinition (EntityStore *store, const StringView &name, const Value &value) |
bool COGSCORE_DLL_API | readEntityDefinition (EntityStore *store, const StringView &name, const Value &value, struct EntityDefinition &definition) |
void COGSCORE_DLL_API | readEntityDefinition (const StringView &content, EntityStore *store) |
Read an entity definition from the JSON string given in content, and add it to the store. | |
template<typename T , typename AllocatorType > | |
void | writeVectorVec (Value &object, const StringView &key, const std::vector< T > &values, const std::vector< T > defaultValue, AllocatorType &a) |
template<typename T , typename AllocatorType > | |
void | writeVectorInt (Value &object, const StringView &key, const std::vector< T > &values, const std::vector< T > defaultValue, AllocatorType &a) |
template<typename T , typename AllocatorType > | |
void | writeVectorDouble (Value &object, const StringView &key, const std::vector< T > &values, const std::vector< T > defaultValue, AllocatorType &a) |
template<typename T , typename AllocatorType > | |
void | writeVec (Value &object, const StringView &key, T value, T defaultValue, AllocatorType &a) |
template<typename AllocatorType > | |
void | writeMat (Value &object, const StringView &key, const glm::mat4 &value, const glm::mat4 &defaultValue, AllocatorType &a) |
template<typename AllocatorType > | |
void | writeDouble (Value &object, const StringView &key, const double value, const double defaultValue, AllocatorType &a) |
template<typename T , typename AllocatorType > | |
void | writeInteger (Value &object, const StringView &key, T value, T defaultValue, AllocatorType &a) |
template<typename AllocatorType > | |
void | writeBool (Value &object, const StringView &key, bool value, bool defaultValue, AllocatorType &a) |
template<typename AllocatorType > | |
void | writeString (Value &object, const StringView &key, StringView value, StringView defaultValue, AllocatorType &a) |
std::string | getUniqueMaterialName (Context *context) |
std::string | getResourceName (Context *context, ResourceHandleBase *fieldValue, std::unordered_set< ResourceHandleBase > *resources) |
void COGSCORE_DLL_API | writeEntity (Context *context, ComponentModel::Entity *entity, rapidjson::Value &object, rapidjson::Document &d, SerializationContext *sc=nullptr, const AssetWriteFlags flags=AssetWriteFlags::None) |
Serialize entity adding entity to the given parent 'object'. | |
rapidjson::Document COGSCORE_DLL_API | writeEntity (Context *context, ComponentModel::Entity *entity, const AssetWriteFlags flags=AssetWriteFlags::None) |
Serialize entity to new JSON document. | |
ENABLE_ENUM_FLAGS (JsonParseFlags) | |
COGSCORE_DLL_API Document | parseJson (const StringView &content, JsonParseFlags flags) |
COGSCORE_DLL_API Document | parseJson (class Context *context, const StringView &fileName, JsonParseFlags flags=JsonParseFlags::None) |
COGSCORE_DLL_API Document | parseJson (class Context *context, std::unique_ptr< FileContents > contents, JsonParseFlags flags=JsonParseFlags::None) |
Cogs::StringView | toKey (const Value &v) |
Cogs::StringView | toView (const Value &v) |
std::string | toString (const Value &v) |
bool | readMaterialProperties (Context *context, const Value &jsonValue, MaterialProperties &materialProperties, bool isShared) |
bool | readMaterialVariants (Context *context, const Value &value, std::vector< ShaderVariantDefinition > &variants, bool isShared=false) |
bool | parseMaterial (class Context *context, const StringView &path, MaterialDefinition &definition) |
bool | inheritMaterialVariants (std::vector< ShaderVariantDefinition > &definitionVariants, std::span< const ShaderVariantDefinition > sourceVariants, const Cogs::StringView &definitionName, const Cogs::StringView &sourceName, bool errorOnExisting=true) |
bool | loadCogsBin1 (Context *context, const ModelLoadInfo &loadInfo, std::unique_ptr< FileContents > contents) |
bool | loadCogsBin3 (Context *context, const ModelLoadInfo &loadInfo, std::unique_ptr< FileContents > contents) |
ENABLE_ENUM_FLAGS (WriteModelFlags) | |
bool | writeCogsBin3Model (Context *context, uint32_t &numVertes, uint32_t &numIndexes, const StringView &fileName, const struct Model *model, WriteModelSettings *settings) |
bool | writeCogsBin3Models (Context *context, uint32_t &numVertes, uint32_t &numIndexes, const StringView &fileName, ComponentModel::Entity **entity, size_t N, WriteModelFlags flags=WriteModelFlags::COMPRESS_ZSTD|WriteModelFlags::COMPRESS_MAX) |
COGSCORE_DLL_API bool | writeModel (Context *context, uint32_t &numVertes, uint32_t &numIndexes, const StringView &fileName, ComponentModel::Entity *entity, WriteModelFlags flags=WriteModelFlags::COMPRESS_ZSTD|WriteModelFlags::COMPRESS_MAX) |
COGSCORE_DLL_API bool | writeModel (Context *context, uint32_t &numVertes, uint32_t &numIndexes, const StringView &fileName, const struct Model *model, WriteModelSettings *settings) |
COGSCORE_DLL_API bool | writeModels (Context *context, uint32_t &numVertes, uint32_t &numIndexes, const StringView &fileName, ComponentModel::Entity **entity, size_t N, WriteModelFlags flags=WriteModelFlags::COMPRESS_ZSTD|WriteModelFlags::COMPRESS_MAX) |
COGSCORE_DLL_API bool | writeModel (Context *context, const StringView &fileName, ComponentModel::Entity *entity, WriteModelFlags flags=WriteModelFlags::COMPRESS_ZSTD|WriteModelFlags::COMPRESS_MAX) |
template<typename T > | |
T | readValue (const Value &value, T defaultValue, ExpressionContext *ev) |
template<typename T > | |
T | readValue (const Value &value, ExpressionContext *ev) |
uint32_t | readArray (const Value &value, float *dst, unsigned N, ExpressionContext *ev) |
template<int S, typename T , glm::precision P, template< int, typename, glm::precision > class vecType> | |
uint32_t | readArray (const Value &value, vecType< S, T, P > &result, ExpressionContext *ev) |
RenderResourceType | parseResourceType (const std::string &str) |
void | parseOptions (const Value &jsonOptions, RenderPipelineDefinition &definition) |
void | parseValue (const StringView &key, const Value &value, ParsedValue &v) |
void | parseResource (const Value &value, RenderResourceDefinition &resource, const std::string &) |
bool | parseResources (const Value &jsonResources, RenderPipelineDefinition &definition, const std::string &condition="") |
void | parseSlots (const Value &value, std::vector< RenderTaskSlot > &slots) |
void | parseTask (const Value &jsonTask, RenderTaskDefinition &task, const std::string &) |
bool | parseTasks (const Value &jsonTasks, RenderPipelineDefinition &definition, const std::string &condition="") |
bool | parseDefinition (Context *context, const Value &jsonDefinition, RenderPipelineDefinition &definition) |
RenderPipelineDefinition | parsePipeline (class Context *context, const StringView &resource, bool isContent=false) |
StringView | readMesh (Context *context, ResourceDefinition &definition, const Value &jsonResource) |
void | readAssetDefinition (ReaderContext *, const Value &jsonResource, ResourceDefinition &assetDefinition) |
void | readModelDefinition (ReaderContext *, const Value &jsonResource, ResourceDefinition &definition) |
void | readTextureDefinition (ReaderContext *, const Value &jsonResource, ResourceDefinition &definition) |
void | parseMaterialInstanceProperty (const Value &value, const StringView &key, const Material *material, FieldValue &propertyValue, ExpressionContext *ec) |
void | readMaterialInstanceDefinition (ReaderContext *rc, const Value &value, ResourceDefinition &resourceDefinition) |
void | readResource (Context *context, const StringView &name, const Value &jsonResource) |
void | readResourceDefinition (Context *context, const StringView &name, const Value &jsonResource, ResourceDefinition &definition) |
ReaderExtension * | getExtensionReader (size_t code) |
void COGSCORE_DLL_API | registerExtensionReader (Context *context, const StringView &resourceType, const Reflection::Type &handleType, ReaderExtension extension) |
void | readResources (Context *context, const Value &jsonResources, int flags=0) |
void | readResourceDefinitions (Context *context, const Value &jsonResources, int flags, AssetDefinition &asset) |
void COGSCORE_DLL_API | readScene (class Context *context, const Value &jsonScene, AssetLoadFlags flags, ComponentModel::Entity *root) |
Parse JSON description of Entities in Cogs Scene file and create Entities defined in scene. | |
void COGSCORE_DLL_API | readSceneDefinition (class Context *context, const Value &jsonScene, AssetLoadFlags flags, AssetDefinition &asset) |
Parse JSON description of Entities in Cogs Scene. Store contents in asset param. | |
void COGSCORE_DLL_API | readSceneEntityDefinition (Context *context, const Value &jsonEntity, AssetDefinition &asset, SceneDefinition &sceneDef, uint32_t entityId, struct ExpressionContext *ev) |
void COGSCORE_DLL_API | readVariables (Variables &variables, const Value &jsonVariables, const std::string §ionHeader, bool defaults=false) |
CPUFeature | operator| (CPUFeature lhs, CPUFeature rhs) |
Bitmask convenience operator. | |
CPUFeature & | operator|= (CPUFeature &lhs, CPUFeature rhs) |
Bitmask convenience operator. | |
CPUFeature | operator& (CPUFeature lhs, CPUFeature rhs) |
Bitmask convenience operator. | |
CPUFeature & | operator&= (CPUFeature &lhs, CPUFeature rhs) |
Bitmask convenience operator. | |
ENABLE_ENUM_FLAGS (TaskFlags) | |
ENABLE_ENUM_FLAGS (VariableFlags) | |
size_t | getMaterialHash (const MaterialComponent &component) |
Creates a hash value from the material properties in the given component. | |
void | applyRenderMaterial (const MaterialComponent &component, const MaterialData &data) |
Apply the material instance from the given component to the mesh render component (if found) on the same entity, making mesh rendering use said instance. | |
uint32_t | findFirstLodChild (const AssetDefinition &definition, uint32_t firstChild, int32_t targetLevel) |
void | initializeAssetInstance (AssetInstanceData &assetInstance) |
glm::vec3 | euclidean (const glm::vec4 &a) |
void | getLodReference (Context *context, AssetInstanceData &assetInstance, AssetLodReference &lodRef, Entity *ref) |
bool | isOutside (AssetLodReference &lodReference, const Geometry::BoundingBox &bbox) |
void | updateLodGroupDesiredLevel (AssetInstanceData &instance, AssetLodReference &lodReference, EntityInstanceData &lodInstance, uint32_t lodDepth, const float tolerance) |
void | calculateModelCost (Context *, ModelInstanceData &modelData, Model *model) |
void | updateAssetDesiredLevels (Context *context, AssetInstanceData &assetInstance, uint32_t lodDepth, uint32_t maxIterations) |
void | updateEntityDesiredLevels (Context *context, AssetInstanceData &instance, AssetLodReference &lodReference, EntityInstanceData &entityInstance, uint32_t lodDepth, const float tolerance) |
void | clearEntity (Context *context, AssetInstanceData &assetInstance, EntityInstanceData &entityInstance) |
bool | checkEntity (Context *context, AssetLodReference &lodReference, AssetInstanceData &assetInstance, EntityInstanceData &entityInstance, EntityInstanceData *parentInstance) |
bool | spawnEntity (Context *context, AssetLodReference &lodReference, AssetInstanceData &assetInstance, EntityInstanceData &entityInstance, EntityInstanceData *parentInstance, EntityParentMode parentMode) |
bool | spawnLodGroup (Context *context, AssetLodReference &lodReference, AssetInstanceData &assetInstance, EntityInstanceData &entityInstance, EntityInstanceData *parentInstance, EntityParentMode) |
bool | spawnAsset (Context *context, AssetLodReference &lodReference, EntityInstanceData &entityInstance, EntityInstanceData *parentInstance) |
bool | spawnModel (Context *context, AssetInstanceData &assetInstance, EntityInstanceData &entityInstance, EntityInstanceData *parentInstance, EntityParentMode parentMode) |
void | updateEntity (Context *context, AssetLodReference &lodReference, AssetInstanceData &assetInstance, EntityInstanceData &entityInstance, EntityInstanceData *parentInstance) |
void | dispatchMessages (Context *context, AssetInstanceData &assetInstance) |
void | processInFlightRequests (Context *context, AssetSystemData *systemData) |
size_t | processPendingRequests (Context *context, AssetSystemData *systemData, ModelManager *modelManager, AssetSystemVector< AssetModelRequest * > &pendingRequests, AssetSystemVector< AssetModelRequest * > &inFlightRequests, const size_t maxInFlight, const size_t maxProcessed) |
void | pullCameraMatrices (Context *context, AssetSystemData *systemData) |
void | updateRenderPropertiesRecurse (const AssetInstanceData &instanceData, Entity *entity) |
void | updateInstancedModelChildEntityRenderProperties (Context *context, AssetInstanceData &assetInstance, Entity &entity) |
void | updateAssetInstanceRenderProperties (Context *context, AssetInstanceData &assetInstance) |
void | updateEntityInstanceRenderProperties (Context *context, AssetInstanceData &assetInstance, EntityInstanceData &entityInstance) |
template<typename... Args> | |
void * | getDispatcherArg (Args... args) |
void * | getDispatcherArg () |
template<typename Collection , typename... Args> | |
void | dispatch (const Collection &receivers, size_t messageId, Args... args) |
template<typename Collection , typename... Args> | |
void | dispatchRef (const Collection &receivers, size_t messageId, Args... args) |
void | calculateLevelOfDetail (Context *context, const LodComponent &component, LodData &lodData, const glm::vec3 &cameraCenter, const CameraData &cameraData, bool cameraChanged) |
void | forwardRenderProperties (SceneComponent *sceneComp, const RenderComponent *masterRenderComp) |
MaterialInstanceHandle | getMaterialInstance (Context *context) |
void | updateMasterMaterial (Context *, ModelData &modelData, MaterialInstanceHandle masterMaterial) |
void | initializeTypes () |
void | cleanupTypes () |
void | readSize_t (ExpressionValue< size_t > &value, ExpressionContext *ev, const std::string &prefix, const ParsedValue &parsedValue) |
FrustumPlanes | operator| (FrustumPlanes lhs, FrustumPlanes rhs) |
Bitmask convenience operator. | |
FrustumPlanes & | operator|= (FrustumPlanes &lhs, FrustumPlanes rhs) |
Bitmask convenience operator. | |
FrustumPlanes | operator& (FrustumPlanes lhs, FrustumPlanes rhs) |
Bitmask convenience operator. | |
FrustumPlanes & | operator&= (FrustumPlanes &lhs, FrustumPlanes rhs) |
Bitmask convenience operator. | |
COGSCORE_DLL_API FrustumPlanes | frustumClassifyBoundingBox (const glm::mat4 &localToClip, const glm::vec3 &min, const glm::vec3 &max) |
COGSCORE_DLL_API FrustumPlanes | frustumClassifyBoundingBox (const glm::mat4 &localToClip, const glm::vec3 &min, const glm::vec3 &max, const float discardThresholdSqr, const float keepThreshold) |
glm::vec3 | euclidean (const glm::vec4 h) |
glm::quat | getRotation (glm::vec3 src, glm::vec3 dest) |
bool | isCharacter (char c) |
bool | isNumber (char c) |
int | parseEnumFlags (const char *¤t, const char *end, const Reflection::Type &type, int defaultValue) |
template<typename T , typename Func > | |
void | parseValues (T *values, const TokenStream &tokens, size_t expected, Func f) |
template<typename T , typename Func > | |
void | parseValues (std::vector< std::pair< size_t, std::string > > &expressions, T *values, const TokenStream &tokens, size_t expected, Func f) |
ENABLE_ENUM_FLAGS (ParsedValueTextureFlags) | |
bool | matchChars (const char c, const StringView &chars) |
void COGSCORE_DLL_API | split (const StringView &str, const StringView &splits, TokenStream &tokens) |
void COGSCORE_DLL_API | split (const StringView &str, const StringView &splits, const int grouper, TokenStream &tokens) |
TokenStream COGSCORE_DLL_API | split (const StringView &str, const StringView &splits) |
TokenStream | tokenize (const StringView &valueStr) |
void | tokenize (const StringView &valueStr, TokenStream &tokens) |
void COGSCORE_DLL_API | parseStringValue (const StringView &value, ParsedValue &v) |
Cogs::TextureFormat COGSCORE_DLL_API | parseTextureFormat (const StringView &str, Cogs::TextureFormat defaultFormat=TextureFormat::R8G8B8A8_UNORM_SRGB) |
double | parseDouble (const StringView &token, double defaultValue=0) |
float | parseFloat (const StringView &token, float defaultValue=0) |
int32_t | parseInt (const StringView &token, int32_t defaultValue=0) |
uint32_t | parseUInt (const StringView &token, uint32_t defaultValue=0) |
bool | parseBool (const StringView &token, bool defaultValue=false) |
bool | parseBool_ (bool &rv, const StringView &token) |
Parse a bool putting return value in rv and returning whether or not parsing was successful. | |
bool | parseInt_ (int32_t &rv, const StringView &token) |
Parse an int putting return value in rv and returning whether or not parsing was successful. | |
uint64_t COGSCORE_DLL_API | parseISO8601 (const StringView &iso8601) |
Parse ISO 8601 timestamps. | |
uint64_t COGSCORE_DLL_API | parseISO8601 (const StringView &iso8601, int &tzOffset) |
int COGSCORE_DLL_API | parseEnum (const StringView &token, const Reflection::Type &type, int defaultValue) |
int COGSCORE_DLL_API | parseEnumFlags (const StringView &token, const Reflection::Type &type, int defaultValue) |
template<typename T > | |
T | parseEnum (const StringView &token, T defaultValue=T()) |
template<typename T > | |
T | parseEnumFlags (const StringView &token, T defaultValue=T()) |
void | parseQueryString (std::vector< ParsedValue > &attributes, StringView query) |
void | parseValues (float *values, const TokenStream &tokens, size_t expected) |
void | parseValues (double *values, const TokenStream &tokens, size_t expected) |
void | parseValues (int *values, const TokenStream &tokens, size_t expected) |
void | parseValues (uint32_t *values, const TokenStream &tokens, size_t expected) |
void | parseValues (bool *values, const TokenStream &tokens, size_t expected) |
void | parseValues (std::vector< std::pair< size_t, std::string > > &expressions, float *values, const TokenStream &tokens, size_t expected) |
void | parseValues (std::vector< std::pair< size_t, std::string > > &expressions, double *values, const TokenStream &tokens, size_t expected) |
void | parseValues (std::vector< std::pair< size_t, std::string > > &expressions, int *values, const TokenStream &tokens, size_t expected) |
void | parseValues (std::vector< std::pair< size_t, std::string > > &expressions, uint32_t *values, const TokenStream &tokens, size_t expected) |
void | parseValues (std::vector< std::pair< size_t, std::string > > &expressions, bool *values, const TokenStream &tokens, size_t expected) |
COGSCORE_DLL_API size_t | simplexScratchSize (const size_t variableCount, const size_t objectiveCount, const size_t restrictionCount) |
Number of bytes of scratch array required by simplexMaximize. | |
COGSCORE_DLL_API SimplexResult | simplexMaximize (Context *context, uintptr_t scratch, double *solutions, const int variableCount, const double *objectives, const int objectiveCount, const double *restrictions, const int restrictionCount, const int maxIterationCount, const bool printSteps=false) |
Find the maximum of a linear programming problem using the simplex method. | |
COGSCORE_DLL_API glm::vec2 | localSphereRadiusInScreenSpace (const glm::mat4 &localToClip, const glm::mat4 &clipToLocal, const glm::vec4 &clipPosition, const float localRadius) |
Given a screen space reference position and a local space radius, find the corresponding screen space radii (along screen x and y). | |
COGSCORE_DLL_API float | sphereSectorGeometricDistancePredicate (const glm::vec2 screenSpaceRadii, const glm::vec2 viewportSize, const float distancePixelTolerance, const float minSectors, const float maxSectors) |
COGSCORE_DLL_API float | sphereSectorGeometricAreaPredicate (const glm::vec2 screenSpaceRadii, const glm::vec2 viewportSize, const float areaPixelTolerance, const float minSectors, const float maxSectors) |
COGSCORE_DLL_API void | transformVertex3ToVertex4 (Context *context, uint8_t *dst, const size_t dst_stride, const size_t dst_bytes, const glm::mat4 &matrix, const uint8_t *src, const size_t src_stride, const size_t src_bytes, const size_t src_count) |
void | transformVertices (Context *context, std::vector< glm::vec4 > &dst, const glm::mat4 &matrix, const std::vector< glm::vec3 > &src) |
void | transformVertices (Context *context, std::vector< glm::vec4 > &dst, const glm::mat4 &matrix, const std::vector< glm::vec3 > &src, size_t offset, size_t count) |
void | transformVertex3ToVertex4AVX (uint8_t *dst, const size_t dst_stride, const size_t, const glm::mat4 &matrix, const uint8_t *src, const size_t src_stride, const size_t, const size_t src_count) |
void | transformVertex3ToVertex4FastPathAVX (uint8_t *dst, const size_t dst_stride, const size_t, const glm::mat4 &matrix, const uint8_t *src, const size_t src_stride, const size_t, const size_t src_count) |
void | transformVertex3ToVertex4SSE1 (uint8_t *dst, const size_t dst_stride, const size_t dst_bytes, const glm::mat4 &matrix, const uint8_t *src, const size_t src_stride, const size_t src_bytes, const size_t src_count) |
void | transformVertex3ToVertex4FastPathSSE1 (uint8_t *dst, const size_t dst_stride, const size_t dst_bytes, const glm::mat4 &matrix, const uint8_t *src, const size_t src_stride, const size_t src_bytes, const size_t src_count) |
glm::vec3 | project (const CameraData &data, const glm::vec3 &in) |
float | getWorldToScreenScale (Context *, const CameraData &cameraData, const glm::vec3 &worldCenter, float normRadius) |
template<> | |
void | LoftedCrossSectionsComponent::setVertices< std::vector< PositionNormalVertex > & > (std::vector< PositionNormalVertex > &arg) |
template<> | |
void | LoftedCrossSectionsComponent::setVertices< std::vector< PositionNormalVertex > > (std::vector< PositionNormalVertex > &&arg) |
template<> | |
void | LoftedCrossSectionsComponent::setVertices< std::vector< PositionNormalTexVertex > & > (std::vector< PositionNormalTexVertex > &arg) |
template<> | |
void | LoftedCrossSectionsComponent::setVertices< std::vector< PositionNormalTexVertex > > (std::vector< PositionNormalTexVertex > &&arg) |
MaterialInstanceHandle | createMaterial (Context *context, int colorIndex, PrimitiveType::EPrimitiveType primitiveType) |
void | createLayerModel (Context *context, Model &model, uint32_t parentIndex, const std::string &name, const std::vector< PositionNormalVertex > &vertexBuffer, const std::vector< uint32_t > &indexBuffer, PrimitiveType::EPrimitiveType primitiveType, int colorIndex) |
Batch | readBatch (Context *context, const StringView &path) |
void | runFrames (Context *context, size_t numFrames, bool clear, bool wait) |
template<typename T > | |
void | runCommand (Batch &, BatchCommand &command, Editor *editor, EntityId id) |
void COGSCORE_EDITOR_API | runBatch (class Context *context, class Editor *editor, const StringView &path) |
COGSCORE_EDITOR_API void | getMeshItems (Context *context, MeshItems &items, EntityPtr entity, uint32_t primitiveTypeMask=~0u) |
COGSCORE_EDITOR_API void | getMeshItems (Context *context, MeshItems &items, Cogs::Core::EntityIds entities, uint32_t primitiveTypeMask=~0u) |
COGSCORE_EDITOR_API void | remapVertices (Context *context, MeshRep &rep, const std::vector< uint32_t > &unique) |
COGSCORE_EDITOR_API void | remapIndices (Context *context, MeshRep &rep, const std::vector< uint32_t > &map) |
COGSCORE_EDITOR_API void | unpackMeshItems (Context *context, std::vector< MeshHandle > &originalMeshes, MeshReps &meshes, MeshItems &items, UnpackOptions options=UnpackOptions()) |
COGSCORE_EDITOR_API void | packMeshItems (Context *context, std::vector< MeshHandle > &originalMeshes, MeshReps &meshes, MeshItems &items, bool update=true) |
COGSCORE_EDITOR_API EntityPtr | createNewMeshItems (Context *context, Cogs::ComponentModel::Entity *parent, std::vector< MeshHandle > &originalMeshes, MeshReps &meshes, MeshItems &items) |
COGSCORE_EDITOR_API EntityPtr | createAsSingleMeshItem (Context *context, Cogs::ComponentModel::Entity *parent, std::vector< MeshHandle > &originalMeshes, MeshReps &meshes, MeshItems &items) |
StringView | getOption (const std::vector< ParsedValue > &options, const StringView &key, const StringView &defaultValue="") |
Find and get value of option in vector as a string. Return default if not found. | |
size_t | getOption (const std::vector< ParsedValue > &options, const StringView &key, const size_t defaultValue) |
Find and get value of option in vector as size_t. Return default if not found. | |
float | getOption (const std::vector< ParsedValue > &options, const StringView &key, const float defaultValue) |
Find and get value of option in vector as float. Return default if not found. | |
bool | replaceToken (std::string &str, const std::vector< ParsedValue > &options, const std::string token, const StringView &option, const StringView &direct) |
Check string for the given token. Replace with option string is set else direct value. | |
std::string | makeDateString (std::time_t &t, const StringView &fmt) |
std::string | replaceFileMacros (std::string outputName, const std::vector< ParsedValue > &options) |
Replace common macroes for file name generation. I.e.: "A/$Filename" etc. | |
std::string | fixInvalidPathChars (const std::string &filename) |
Remove characters that are not valid for filenames lik "<>:/\?" etc. | |
void | writeStream (ModelStats &stats, const DataStream *stream) |
void | writeMeshStats (ModelStats &stats, Mesh *mesh) |
void | writeStats (Context *context, ModelStats &model, uint32_t, ComponentModel::Entity *entity) |
void | RemoveEntitiesWithAncestors (Context *context, const EntityIds &entityIds, EntityIds &output) |
bool | canMerge (SceneComponent *sc) |
template<typename Container > | |
void | copyStream (Mesh *mesh, VertexDataType::EVertexDataType dataType, Container &container) |
MeshHandle | createMesh (Context *context, SceneComponent *sc) |
void | traverse (Context *context, Entity *entity, const std::regex &matchRegex) |
uint32_t | getMeshSignature (const Mesh *mesh) |
void | closeMergeState (Context *context, MergeMeshState &state) |
void | traverseMerge (Context *context, Entity *entity, MergeMeshState &state) |
void | traverseScale (Context *context, Entity *entity, MergeMeshState &state) |
void | gatherMaterials (ComponentModel::Entity *entity, std::unordered_map< EntityId, MaterialInstanceHandle > &materials) |
Entity * | showEntity (EditorState &editor, Entity *entity) |
ENABLE_ENUM_FLAGS (KeyboardModifiers) | |
std::shared_ptr< litehtml::element > | findElement (const std::shared_ptr< litehtml::element > &e, const StringView &id) |
std::string | findFont (const StringView &family, int) |
ImVec4 | toImVec4 (const litehtml::web_color &color) |
ImVec2 | toImVec2 (int x, int y) |
bool | hasRadius (const litehtml::border_radiuses &radius) |
float | getBorderWidth (const litehtml::borders &borders) |
int | calculateSegments (float radius) |
void | createRoundedPath (const ImVec2 &a, const ImVec2 &b, const litehtml::border_radiuses &radius, float width=1.0f) |
ScriptObject * | createElement (const ScriptContextHandle &scriptContext, litehtml::document *document, const litehtml::element::ptr &found) |
void | createDocument (const ScriptContextHandle &scriptContext, litehtml::document *document, const litehtml::element::ptr &) |
void | dispatchMouseEvent (ScriptContextHandle scriptContext, const litehtml::element::ptr &el, const StringView &eventName, const StringView &attributeName, int x, int y) |
ScriptContextHandle | getScriptContext (Context *context, Entity *entity) |
ModelPart * | findFirst (Model &model) |
btVector3 | toBullet (const glm::vec3 &v) |
btQuaternion | toBullet (const glm::quat &v) |
void | updateMassProperties (RigidBodyData &data, float mass, const glm::vec3 &scale) |
bool | parseCloudJs (Context *, PotreeData *poData, const Cogs::FileContents *data) |
ENABLE_ENUM_FLAGS (PotreeCell::Flags) | |
void | decodePotreeBin (PotreeDecodeOutData &out, const PotreeDecodeInData &in, const Cogs::FileContents &inData) |
void | ComputePriority (SeaCurrentsComponent &seaCurrentsComp, const std::pair< glm::vec2, glm::vec2 > &bounds, float threshold, int lowestPrio) |
void | renderCallback (RenderTaskContext *renderingContext, DrawContext *drawContext, const RenderItem *item) |
TerrainData * | getTerrainData (Context *context, EntityId id) |
void | updateTerrainContext (TerrainData &terrainData, const RenderTaskContext *renderingContext, const RenderTarget *renderTarget, const CameraData &cameraData) |
void COGSCORE_DLL_API | seq_parameter_set_nalu (H264ParseData &parse, const uint8_t *sps, size_t sps_size) |
void COGSCORE_DLL_API | pic_parameter_set_nalu (H264ParseData &parse, const uint8_t *pps, size_t pps_size) |
void COGSCORE_DLL_API | byte_stream_nal_unit (H264ParseData &parse, const uint8_t *data, size_t size) |
void COGSCORE_DLL_API | extract_spspps (const uint8_t *data, size_t size, std::string &sps, std::string &pps) |
bool COGSCORE_DLL_API | extract_nalu_header (NALheader &header, const uint8_t *data, size_t size) |
size_t COGSCORE_DLL_API | find_next_frame (const uint8_t *data, size_t size) |
void COGSCORE_DLL_API | video_parameter_set_nalu (H265ParseData &parse, const uint8_t *vps, size_t vps_size) |
void COGSCORE_DLL_API | seq_parameter_set_nalu (H265ParseData &parse, const uint8_t *sps, size_t sps_size) |
void COGSCORE_DLL_API | pic_parameter_set_nalu (H265ParseData &parse, const uint8_t *pps, size_t pps_size) |
void COGSCORE_DLL_API | byte_stream_nal_unit (H265ParseData &parse, const uint8_t *data, size_t size) |
void COGSCORE_DLL_API | extract_spspps (const uint8_t *data, size_t size, std::string &vps, std::string &sps, std::string &pps) |
bool COGSCORE_DLL_API | extract_nalu_header (H265NALheader &header, const uint8_t *data, size_t) |
void | profile_tier_level (H265ProfileTierLevel &tier, const uint8_t *data, size_t &bit, uint32_t profilePresentFlag, uint32_t maxNumSubLayersMinus1) |
void | hrd_parameters (const uint8_t *, size_t, uint32_t commonInfPresentFlag, uint32_t maxNumbSubLayersMinus1) |
void | video_parameter_set_rbsp (H265ParseData &parse, const uint8_t *data, size_t size) |
void | seq_parameter_set_rbsp (H265ParseData &parse, const uint8_t *data, size_t size) |
void | pic_parameter_set_rbsp (H265ParseData &parse, uint8_t *data, size_t size) |
void | parse_mpeg_ts (MPEGTransportStreamData &parse, uint8_t *data, size_t size) |
void | write_b (uint32_t val, uint8_t *data, size_t &bit) |
void | write_u (uint32_t val, uint8_t *data, size_t &bit, size_t n) |
uint32_t | get_bit (const uint8_t *data, size_t &bit) |
uint32_t | peek_bit (const uint8_t *data, size_t &bit) |
uint32_t | next_bits (size_t n, const uint8_t *data, size_t bit) |
uint32_t | read_bits (size_t n, const uint8_t *data, size_t &bit) |
uint64_t | read_bits64 (size_t n, const uint8_t *data, size_t &bit) |
uint32_t | parse_ue (const uint8_t *data, size_t &bit) |
uint32_t | parse_ae (const uint8_t *, size_t &) |
uint32_t | parse_b (size_t n, const uint8_t *data, size_t &bit) |
uint32_t | parse_f (size_t n, const uint8_t *data, size_t &bit) |
int32_t | parse_i (size_t n, const uint8_t *data, size_t &bit) |
int32_t | parse_se (const uint8_t *data, size_t &bit) |
uint32_t | parse_u (size_t n, const uint8_t *data, size_t &bit) |
uint64_t | parse_u64 (size_t n, const uint8_t *data, size_t &bit) |
uint32_t | parse_ue (const uint8_t *data, size_t &bit, size_t size) |
uint64_t | parse_ue64 (const uint8_t *data, size_t &bit) |
uint32_t | more_rbsp_data (const uint8_t *data, size_t size, size_t bit) |
void | updateData (ZipData &data, const ZipComponent &component) |
void | updatePositions (const ZipData &data, const ZipComponent &component, Mesh *mesh, bool useGpu) |
void | updateIndexes (const ZipData &data, const ZipComponent &component, Mesh *mesh) |
void | updateTexCoords (const ZipData &data, const ZipComponent &, Mesh *mesh) |
Variables | |
constexpr uint32_t | NoObjectId = 0 |
constexpr size_t | kMaxAxes = 128 |
constexpr size_t | kMaxActions = 128 |
constexpr float | kDefaultDeadZone = 0.1f |
constexpr size_t | kNoDeadZoneLink = static_cast<size_t>(-1) |
constexpr float | kDefaultSensitivity = 1.0f |
constexpr size_t | kMaxCascades = 6 |
constexpr int | kMaxLights = 8 |
ImDrawCallback | setGuiMode = dummyRenderCallback |
Callback for Render updates - not really called. | |
std::string | guiWindowTitle |
std::vector< size_t > | guiIdsStack |
std::unordered_map< std::string, TaskCreator > | creators |
std::unordered_map< std::string, TaskDestroyer > | destroyers |
const size_t | kMaxBones = 256 |
constexpr uint32_t | NoParentEntity = static_cast<uint32_t>(-1) |
const size_t | NoParentPart = uint32_t(-1) |
const uint32_t | NoIndex = uint32_t(-1) |
const glm::mat4 | ModelPartIdentity = glm::mat4(1.0f) |
Cogs::Core::TextureAllocator | textureAllocator |
struct Cogs::Core::MessageDispatcher | dispatcher |
constexpr MessageId | NoMessage = static_cast<MessageId>(-1) |
constexpr size_t | kMaxDynamicTypes = 1024 |
constexpr size_t | kMaxDynamicMethods = 64 |
constexpr uint32_t | NoCullingIndex = static_cast<uint32_t>(-1) |
const SpriteBatchIndex | NoBatchIndex = static_cast<SpriteBatchIndex>(-1) |
const SpriteIndex | NoSpriteIndex = static_cast<SpriteIndex>(-1) |
const SpriteMaterialKey | NoSpriteMaterial = static_cast<SpriteMaterialKey>(-1) |
const SpriteMaterialKey | DefaultSpriteMaterial = 0 |
const size_t | kMinBatchSize = 256 / sizeof(SpriteVertex) |
const int | NoParent = -1 |
const size_t | ParsedDataTypeSizes [] |
const char * | ParsedDataTypeNames [] |
const StringRef | NoString = StringRef{ 0 } |
Cogs::Core::AudioExtension | audioExtensionInstance |
Cogs::Core::BlueNoiseExtension | blueNoiseExtensionInstance |
Cogs::Core::CasingExtension | casingExtensionInstance |
Cogs::Core::DimeLoaderExtension | dimeLoaderExtensionInstance |
Cogs::Core::DrillingExtension | drillingExtensionInstance |
const IconInfo | icons [] |
Cogs::Core::EditorExtension | editorExtension |
Cogs::Core::GliTextureLoaderExtension | gliTextureLoaderExtensionInstance |
Cogs::Core::GltfLoaderExtension | gltfLoader |
Cogs::Core::GuiExtension | guiExtensionInstance |
Cogs::Core::Image360Extension | image360ExtensionInstance |
Cogs::Core::MultiphaseFlowExtension | multiphaseFlowExtensionInstance |
Cogs::Core::OGC3DTilesExtension | OGC3DTilesExtensionInstance |
Cogs::Core::PhysicsExtension | physicsExtensionInstance |
Cogs::Core::PotreeExtension | potreeExtensionInstance |
const Cogs::StringView | spacingGlobalScaleName = "potree.spacing.globalScale" |
const Cogs::StringView | pointSizeGlobalMinScaleName = "potree.pointSize.globalMinScale" |
const Cogs::StringView | pointSizeGlobalMaxScaleName = "potree.pointSize.globalMaxScale" |
const Cogs::StringView | pointSizeGlobalScaleName = "potree.pointSize.globalScale" |
Cogs::Core::ProceduralSkyExtension | proceduralSkyExtension |
Cogs::Core::SeaCurrentsExtension | seaCurrentsExtensionInstance |
Cogs::Core::TerrainExtension | terrainExtensionInstance |
Cogs::Core::WellLogExtension | wellLogExtension |
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs.Core.
! Build an octree from rvm files
See Documentation/BuildOctreeCommand.md
EXT_meshopt_compression functions
This is a compression which is only relates to the "BufferView" sections of the glTF spec. When a bufferview is defined, the accompanying decomp-data is declared. When the bufferview is used we need to decompress the corresponding buffer.
Ref: https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Vendor/EXT_meshopt_compression/README.md https://github.com/zeux/meshoptimizer#vertexindex-buffer-compression
using Cogs::Core::AnimationHandle = typedef ResourceHandle_t<Animation> |
Definition at line 34 of file Resources.h.
using Cogs::Core::AssetHandle = typedef ResourceHandle_t<Asset> |
Definition at line 40 of file Resources.h.
using Cogs::Core::BlueNoiseHandle = typedef ResourceHandle_t<BlueNoise> |
Definition at line 13 of file Resources.h.
Definition at line 13 of file BufferManager.h.
using Cogs::Core::CommandCreator = typedef std::function<EditorCommand* (EditorState*)> |
using Cogs::Core::ComponentCreator = typedef std::function<ComponentModel::ComponentHandle(void)> |
Definition at line 11 of file ComponentFunctions.h.
using Cogs::Core::ComponentDestroyer = typedef std::function<void(ComponentModel::ComponentHandle)> |
Definition at line 12 of file ComponentFunctions.h.
typedef void Cogs::Core::ComponentNotifyCallback(BridgeContext *context, int componentTypeId, size_t entityId, int notification, const void *data, size_t dataSize) |
Callback to receive component notifications.
Components can send notifications to the client. What a notification means is defined by the component.
context | Context pointer |
componentTypeId | TypeId of the component sending the notification. |
entityId | Id of the entity if notification is regarding a specific entity, otherwise NoEntity |
notification | The notification, what this means is defined by the notifying component type. |
using Cogs::Core::ConstantBufferKey = typedef uint16_t |
Definition at line 47 of file Resources.h.
using Cogs::Core::ConstEntityPtr = typedef std::shared_ptr<const ComponentModel::Entity> |
Smart pointer for const Entity access.
Definition at line 15 of file EntityPtr.h.
using Cogs::Core::ConstWeakEntityPtr = typedef std::weak_ptr<const ComponentModel::Entity> |
Weak Smart pointer for const Entity access.
Definition at line 21 of file EntityPtr.h.
using Cogs::Core::EffectHandle = typedef ResourceHandle_t<Effect> |
Definition at line 16 of file Resources.h.
using Cogs::Core::EntityPtr = typedef std::shared_ptr<ComponentModel::Entity> |
Smart pointer for Entity access.
Definition at line 12 of file EntityPtr.h.
using Cogs::Core::FontHandle = typedef ResourceHandle_t<Font> |
Definition at line 31 of file Resources.h.
using Cogs::Core::GuiDocumentHandle = typedef ResourceHandle_t<GuiDocument> |
Definition at line 37 of file Resources.h.
typedef void Cogs::Core::HierarchyChangeCallback(class Context *context, EntityId entityId) |
typedef std::function<void(Context*, EntityId)> Cogs::Core::HierarchyChangedCallback |
Definition at line 17 of file ModelSystem.h.
Definition at line 34 of file ITextureLoader.h.
Definition at line 25 of file IFontLoader.h.
Definition at line 20 of file IModelLoader.h.
Definition at line 35 of file ITextureLoader.h.
Definition at line 19 of file IModelLoader.h.
typedef std::function<void(Context* context, bool* show)> Cogs::Core::Inspector |
Definition at line 10 of file InspectorGuiRenderer.h.
Definition at line 33 of file ITextureLoader.h.
using Cogs::Core::MaterialHandle = typedef ResourceHandle_t<Material> |
Definition at line 19 of file Resources.h.
Definition at line 68 of file EntityDefinition.h.
using Cogs::Core::MaterialInstanceHandle = typedef ResourceHandle_t<MaterialInstance> |
Definition at line 22 of file Resources.h.
using Cogs::Core::MeshHandle = typedef ResourceHandle_t<Mesh> |
Definition at line 28 of file Resources.h.
typedef std::vector<MeshRep> Cogs::Core::MeshReps |
Definition at line 49 of file CommandHelpers.h.
typedef void Cogs::Core::MessageCallback(int messageId, const void *data) |
using Cogs::Core::MessageId = typedef size_t |
Definition at line 19 of file DynamicComponentSystem.h.
using Cogs::Core::ModelHandle = typedef ResourceHandle_t<Model> |
Definition at line 25 of file Resources.h.
Definition at line 164 of file VertexFormats.h.
typedef std::vector<std::pair<std::string, std::string> > Cogs::Core::PipelineOptions |
Definition at line 65 of file RenderTask.h.
typedef std::string Cogs::Core::PropertyName |
Typedef for property names.
Definition at line 18 of file MaterialPropertyBuffer.h.
typedef void Cogs::Core::ReadbackCallback(class Context *context, const char *key, const void *data, int size) |
typedef void Cogs::Core::ReadbackCallbackInternal(class Context *context, const CameraData *, uint32_t frame, const char *key, const void *data, int size) |
typedef void Cogs::Core::RenderCallback(class Context *context) |
typedef std::vector<RenderItem> Cogs::Core::RenderItems |
Definition at line 240 of file RenderList.h.
typedef std::vector<RenderTask *> Cogs::Core::RenderTaskList |
Definition at line 103 of file RenderTask.h.
using Cogs::Core::ResizeCallback = typedef void(class ViewContext* context, int x, int y) |
Definition at line 21 of file ViewContext.h.
using Cogs::Core::ResourceBufferHandle = typedef ResourceHandle_t<BufferResource> |
Definition at line 43 of file Resources.h.
typedef void Cogs::Core::ResourceLoadCallback(class Context *context, int resourceType, ResourceId id, int code) |
using Cogs::Core::ResourcesDefinition = typedef std::vector<ResourceDefinition> |
Definition at line 257 of file AssetDefinition.h.
using Cogs::Core::ScriptArgs = typedef std::vector<ScriptArg> |
Definition at line 47 of file ScriptingEngine.h.
using Cogs::Core::ScriptContextHandle = typedef std::shared_ptr<ScriptContext> |
Definition at line 112 of file ScriptingEngine.h.
using Cogs::Core::ScriptFunctionType = typedef std::function<ScriptObject *(ScriptObject *, const ScriptArgs & args)> |
Definition at line 49 of file ScriptingEngine.h.
using Cogs::Core::ScriptProxyGet = typedef std::function<ScriptObject *(ScriptObject *, const StringView & key)> |
Definition at line 50 of file ScriptingEngine.h.
using Cogs::Core::ScriptProxySet = typedef std::function<bool(ScriptObject *, const StringView & key, const ScriptArg & arg)> |
Definition at line 51 of file ScriptingEngine.h.
using Cogs::Core::ShaderVariants = typedef std::vector<ShaderVariantDefinition> |
Definition at line 68 of file VariantDefinition.h.
using Cogs::Core::ShaderVariantSelectors = typedef std::vector<ShaderVariantSelector> |
Definition at line 69 of file VariantDefinition.h.
typedef ResourceHandle_t<Sound> Cogs::Core::SoundHandle |
using Cogs::Core::SoundLoadInfo = typedef ResourceLoadInfoBase |
Definition at line 11 of file SoundManager.h.
using Cogs::Core::SpriteBatchIndex = typedef size_t |
Definition at line 21 of file SpriteRenderSystem.h.
using Cogs::Core::SpriteIndex = typedef size_t |
Definition at line 24 of file SpriteRenderSystem.h.
using Cogs::Core::SpriteMaterialKey = typedef size_t |
Definition at line 50 of file SpriteRenderSystem.h.
typedef std::function<RenderTask *(RenderTaskContext *, const RenderTaskDefinition &, const PipelineOptions &)> Cogs::Core::TaskCreator |
Definition at line 25 of file RenderTaskFactory.h.
typedef std::function<void(RenderTask **, RenderTaskContext *)> Cogs::Core::TaskDestroyer |
Definition at line 26 of file RenderTaskFactory.h.
using Cogs::Core::TaskFunction = typedef std::function<void ()> |
Type of task function used by the task manager.
Definition at line 38 of file TaskManager.h.
using Cogs::Core::TaskFunctionRef = typedef const TaskFunction& |
Definition at line 39 of file TaskManager.h.
using Cogs::Core::TaskQueueId = typedef uint16_t |
Unique id for a task queue.
Definition at line 14 of file TaskManager.h.
using Cogs::Core::TextureDefinition = typedef ResourceDefinition |
Definition at line 254 of file AssetDefinition.h.
typedef ResourceHandle_t< Texture > Cogs::Core::TextureHandle |
Definition at line 163 of file VertexFormats.h.
using Cogs::Core::TokenStream = typedef std::vector<StringView> |
typedef std::function<void(TSCallbackData&)> Cogs::Core::TSCallback |
typedef std::function<void(uint8_t *data, size_t size)> Cogs::Core::TSEncodeCallback |
Definition at line 10 of file MPEG_TS_encode.h.
using Cogs::Core::VariableKey = typedef uint16_t |
Used to lookup material properties.
Definition at line 46 of file Resources.h.
using Cogs::Core::VideoDecoderCallback = typedef void(const VideoDecoderCallbackData&) |
Definition at line 45 of file IVideoDecoder.h.
using Cogs::Core::VideoEncoderCallback = typedef std::function<void(struct IVideoEncoder*, struct VideoEncoderPayload &payload)> |
Definition at line 12 of file IVideoEncoder.h.
using Cogs::Core::VideoPresentCallback = typedef void(const VideoPresentCallbackData&) |
Definition at line 51 of file IVideoDecoder.h.
using Cogs::Core::WeakEntityPtr = typedef std::weak_ptr<ComponentModel::Entity> |
Weak Smart pointer for Entity access.
Definition at line 18 of file EntityPtr.h.
anonymous enum : uint32_t |
Definition at line 23 of file ImguiRenderer.h.
|
strong |
Defines results for resource activation.
Enumerator | |
---|---|
Success | Resource activated successfully. |
Failure | Resource activation failed. |
Postponed | Resource activation postponed, retry later. |
Delayed | Delayed activation. |
Definition at line 13 of file ResourceBase.h.
|
strong |
Definition at line 17 of file Text3DComponent.h.
|
strong |
Different modes for scaling surface current arrows based on the speed of the current.
The default range of the scaling factor controlled by this mode is 0.2->1.0, but these values can be changed using the cogs variables seacurrents.minScale and seacurrents.maxScale
Enumerator | |
---|---|
Off | No speed dependent arrow scaling. All arrows will have the same size, controlled by SeaCurrentsComponent.scale. |
Normal | Arrows scale with the speed of the current from min speed to max speed. These values can be changed using the cogs variables seacurrents.lowestSpeed and seacurrents.highestSpeed. |
PerBand | Arrows scale with the speed of the current within each band. See IHO S111 standard for band information |
Definition at line 15 of file SeaCurrentsComponent.h.
|
strong |
Controls asset system's model instance behaviour.
Definition at line 11 of file AssetComponent.h.
|
strong |
Asset and Scene loading flags. May be combined with resource loading flags.
Definition at line 165 of file ResourceFlags.h.
|
strong |
Utility function to format a resource index as a filename.
Definition at line 52 of file AssetComponent.h.
|
strong |
Flags that control serialization of assets.
Enumerator | |
---|---|
None | No flags set. |
Geometry | Store entity vector fields (vector<vec3>, vector<vec2>, vector<int>, vector<float>). |
PrettyPrint | Create human-readable JSON, that is, indentation and multiple lines. |
Strip | Strip away names and other data that is not strictly necessary. |
Compress | Compress resulting JSON using zstd, which is automatically recognized during reading. |
Hierarchy | Save all children, not only children in EntityStore. |
Definition at line 8 of file AssetWriteFlags.h.
|
strong |
Definition at line 13 of file AudioSystem.h.
|
strong |
Definition at line 26 of file BasicOceanComponent.h.
|
strong |
Definition at line 19 of file BasicOceanComponent.h.
|
strong |
Definition at line 13 of file BasicOceanComponent.h.
|
strong |
Specifies which color channel to use for elevation data.
Note that Alpha is not gamma-corrected, while RGB is. If you struggle with gamma applied to elevation values from a PNG, try using the alpha channel.
Enumerator | |
---|---|
Red | Fetch elevation from red channel of elevation texture. |
Alpha | Fetch elevation from alpha channel of elevation texture. |
RedGreenBlue | Concatenate bits from red, green and blue channels. |
Definition at line 23 of file BasicTerrainComponent.h.
|
strong |
Definition at line 30 of file BasicTerrainComponent.h.
|
strong |
Definition at line 28 of file VideoCaptureComponent.h.
|
strong |
Defines blending modes for rendering.
Definition at line 12 of file MaterialOptions.h.
|
strong |
Definition at line 65 of file RenderList.h.
|
strong |
Definition at line 53 of file RenderList.h.
|
strong |
Definition at line 15 of file CinematicCameraComponent.h.
|
strong |
Enumerator | |
---|---|
None | No flags specified. |
EnableRender | Renderable. |
EnablePicking | Supports picking. |
FlipY | Flip the y-axis. |
OverrideClearColor | Provide a clear colour for this camera to use. |
Definition at line 21 of file CameraComponent.h.
|
strong |
Enumerator | |
---|---|
PNG | Encode capture image as a PNG image. |
RawARGB | Store image as a blob of raw bytes in ARGB order. |
RawFloat | Store image as a blob of raw float values (in host byte order). |
Definition at line 39 of file CaptureComponent.h.
|
strong |
Enumerator | |
---|---|
Off | Disable capture and camera, consume no rendering resources. |
Scene | Render in normal scene mode,.
|
ObjectId | Render object ids. |
ObjectIdColorize | Render object ids, colorized for visualization. |
Normals | Render world-space surface normals. |
Depth | Render world-space distance from eye, scaled by 1/100 (so a value of 1 equals a distance of 100 units=. |
Definition at line 13 of file CaptureComponent.h.
|
strong |
Definition at line 29 of file CaptureComponent.h.
|
strong |
Definition at line 60 of file IVideoDecoder.h.
|
strong |
Specifices what kind of shape a clip shape has.
Enumerator | |
---|---|
None | No clipping at all. |
Cube | Clip the outside of a cube,. |
InvertedCube | Clip the inside of a cube. |
Definition at line 11 of file ClipShapeComponent.h.
|
strong |
Definition at line 53 of file IVideoDecoder.h.
|
strong |
Definition at line 28 of file IVideoDecoder.h.
|
strong |
Definition at line 34 of file Features.h.
|
strong |
Defines primitive culling modes.
Enumerator | |
---|---|
None | No primitive culling performed. |
Back | Back face of primitives discarded before rasterization. |
Front | Front face of primitives discarded before rasterization. |
Definition at line 61 of file MaterialOptions.h.
|
strong |
Defines value types for default values.
Definition at line 34 of file EntityDefinition.h.
|
strong |
Defines common depth functions.
Definition at line 50 of file MaterialOptions.h.
|
strong |
Defines common depth stencil modes.
Enumerator | |
---|---|
Default | Default, depth test & write enabled. |
NoWrite | Depth test enabled, write disabled. |
AlwaysWrite | Depth write enabled, test mode "Always". Deprecated. |
Disabled | Depth test/write disabled. |
Definition at line 36 of file MaterialOptions.h.
|
strong |
Definition at line 23 of file EditorState.h.
|
strong |
Definition at line 32 of file EditorState.h.
enum Cogs::Core::EffectDefinitionFlags |
Definition at line 77 of file EffectDefinition.h.
|
strong |
Definition at line 27 of file EnginePermutations.h.
|
strong |
Options to findEntity/getEntityFull.
Definition at line 34 of file EntityStore.h.
|
strong |
Definition at line 11 of file EntityCreator.h.
|
strong |
Definition at line 11 of file FontSelectorComponent.h.
|
strong |
Definition at line 11 of file FrustumClassification.h.
|
strong |
Defines kinds of geometric error calculations.
Definition at line 26 of file LodComponent.h.
|
strong |
Definition at line 15 of file GuiComponent.h.
|
strong |
Definition at line 16 of file VideoCaptureComponent.h.
|
strong |
Definition at line 9 of file VideoCaptureComponent.h.
|
strong |
Horizontal alignment of overlays.
Definition at line 43 of file TextComponent.h.
|
strong |
Horizontal justification modes for text.
The text will be positioned horizontally relative to its resulting screen position according to its horizontal justification.
Definition at line 57 of file TextComponent.h.
|
strong |
Definition at line 9 of file Image360Component.h.
|
strong |
Definition at line 12 of file ImageType.h.
|
strong |
Enumerations of Input Devices. Use to check if Cogs is capturing input events.
Definition at line 12 of file InputDeviceType.h.
|
strong |
Type of data in input event queue.
Enumerator | |
---|---|
Keyboard | Keyboard event. |
Mouse | Mouse event. |
Reset | Input Focus lost event. Typically reset any cached mouse/keyboard state. |
Definition at line 19 of file EventBasedInput.h.
|
strong |
Definition at line 19 of file JsonParser.h.
|
strong |
Current keyboard modifiers.
Definition at line 8 of file EventBasedInput.h.
|
strong |
Definition at line 38 of file LightComponent.h.
|
strong |
Defines light types.
Definition at line 14 of file LightComponent.h.
|
strong |
Defines policies for controlling level of detail.
Enumerator | |
---|---|
None | No policy applied, the LodSystem will take no action on the entity. |
CenterDistance | Calculate center distance between the entity and the current camera, using threshold values to determine which children to turn on/off in the children member of SceneComponent. |
GeometricTolerance | Use a geometric error bound to determine how refined geometry needs to be at its current position. |
Definition at line 14 of file LodComponent.h.
|
strong |
Definition at line 13 of file MarkerPointSetComponent.h.
|
strong |
Defines available data types for material properties.
Definition at line 19 of file MaterialTypes.h.
|
strong |
Definition at line 74 of file MaterialDefinition.h.
|
strong |
Material loading flags.
Enumerator | |
---|---|
None | Default loading. |
DelayVariantLoading | Do not load any material variants, will be specified later. |
Definition at line 20 of file MaterialManager.h.
|
strong |
Definition at line 12 of file MaterialProperty.h.
|
strong |
Definition at line 18 of file RenderSystem.h.
|
strong |
Definition at line 17 of file QualityService.h.
|
strong |
Model loading flags. May be combined with resource loading flags.
Enumerator | |
---|---|
None | No flags. |
ForceSynchronous | Force loading the resource synchronously. |
Reload | Reload action. |
NoDefaultName | No default name. |
ForceUnique | Force unique resource load when source resolves to existing resource. |
DoNotCache | Do not cache this resource for later retrieval. |
First | DO NOT USE. Intenal: First available flag for resource specific flags. |
NeedsTangents | The importer should generate tangent data if not present. |
AutomaticTransparency | Materials should be created with the TransparencyMode::Auto option, enabling transparency e.g for any materials with a alpha texture channel. |
ForceTwoSidedMaterial | All materials should be two sided, regardless of any material attributes specified. May fix issues with flipped winding, disappearing surfaces etc. |
DisableOptimization | Disables default optimizations enabled in model loading extensions (e.g spatial optimization in the Asset Importer loader). |
SkipMaterials | Tell the loader it may skip creating material instances during loading. |
NoFlipTexcoords | Do not flip texture coordinates. |
CustomExtensionFlag | Custom flag that can be used by an extension loader. |
Definition at line 112 of file ResourceFlags.h.
|
strong |
Definition at line 15 of file OGC3DTilesComponent.h.
|
strong |
Definition at line 11 of file ValueVariant.h.
|
strong |
Options for COGS picking.
Bitmask.
Enumerator | |
---|---|
None | No flags specified,. |
PickSprites | Check picking for entities with SpriteRenderComponent. I.e. Text, Annotation, Billboard, Overlay etc. |
ReturnChildEntity | Return ID if sub-entity picked, not set: return root parent entity. |
RemoveDuplicateEntities | For multi-pick return - remove entries with same EntityId. Note: May cause slowdown with many hits due to n^2 duplicate removal. |
RemoveDuplicates | For multi-pick return - remove entries with same EntityId & TextureId. Note: May cause slowdown with many hits due to n^2 duplicate removal. |
FlatTexcoordInterpolation | Do not interpolate texture coordinates. Needed if integer IDs are encoded as texture coordinates. |
AddInstanceTexcoords | If mesh has an offset to IDs encoded in a per-instance texcoords stream, add this to the result. |
Definition at line 12 of file PickingFlags.h.
|
strong |
 * Options for returning picking hits.
Â
Enumerator | |
---|---|
Closest | Return just the closest hit. |
AllUnsorted | Return all hits in no specific order. |
AllSorted | Return all hits sorted based on distance from the ray start, closest first. |
Definition at line 40 of file PickingFlags.h.
enum Cogs::Core::PictureType |
Definition at line 14 of file IVideoEncoder.h.
|
strong |
Definition at line 72 of file Features.h.
|
strong |
Positioning mode.
Definition at line 31 of file SpriteRenderComponent.h.
|
strong |
Definition at line 62 of file PotreeSystem.h.
|
strong |
Specifies how the color of the points are chosen.
Enumerator | |
---|---|
Base | Use basecolor property of PotreeComponent, uniform color. |
Color | Use color property from point set if present, fallback to basecolor. |
Intensity | Use intensity property from point set if present and colorize it with the gradient texture, fallback to base color. |
Level | Use the octree depth as color, useful for debugging. |
Definition at line 19 of file PotreeComponent.h.
|
strong |
Specifies how which nodes should get a debug node outlines.
Enumerator | |
---|---|
None | No debug node outlines. |
ActiveCells | Outline all active cells. |
ActiveLeafCells | Outline active cells that are currently leaves. |
Definition at line 52 of file PotreeComponent.h.
|
strong |
Definition at line 55 of file PotreeSystem.h.
|
strong |
Definition at line 40 of file PotreeSystem.h.
|
strong |
Notification messages the potree instance can emit.
Definition at line 10 of file PotreeComponent.h.
|
strong |
Specifies if any adjustments on offset are to be made.
Definition at line 60 of file PotreeComponent.h.
|
strong |
Specifies the shape of the individual points.
Definition at line 35 of file PotreeComponent.h.
|
strong |
Specifies how points are sized with regard to camera distance.
Definition at line 44 of file PotreeComponent.h.
|
strong |
Specifies if any extra shading should be done on the points.
Enumerator | |
---|---|
Flat | Use color directly as-is. |
Basic | Add a falloff darkening away from center. |
Definition at line 28 of file PotreeComponent.h.
|
strong |
Definition at line 32 of file PotreeSystem.h.
|
strong |
Definition at line 76 of file PotreeSystem.h.
|
strong |
Defines projection modes for the camera.
Enumerator | |
---|---|
Perspective | Perspective projection. |
Orthographic | Orthographic projection. |
Definition at line 13 of file CameraComponent.h.
|
strong |
Definition at line 16 of file PropertiesManager.h.
|
strong |
Definition at line 9 of file QualityService.h.
|
strong |
Contains flags to describe rendering behavior.
Enumerator | |
---|---|
None | No render flags set. |
SelfVisibility | Self visibility, used by the SceneSystem to toggle entity visibility on/off. |
ParentVisibility | Parent visibility, used by the SceneSystem to toggle child entity visibility on/off. |
SpecificVisibility | Specific visibility, can be used by systems to toggle visibility, e.g when there is no available or invalid data, but the mesh data should stay intact. |
SelfPickable | Self pickable, used by the SceneSystem to toggle entity pickable on/off. |
ParentPickable | Parent pickable, used by the SceneSystem to toggle child entity pickable on/off. |
CastShadows | Casts shadows. |
CustomMaterial | Custom material set. Keeps legacy material component from changing the material instance. |
ForcePickable | Ensure component is pickable though it is not rendered. |
DisableCulling | Disable culling and always force this component to be rendered. |
Default | Default set of flags. |
Definition at line 14 of file RenderComponent.h.
|
strong |
Definition at line 17 of file RenderList.h.
|
strong |
Contains common render layers.
Definition at line 52 of file RenderComponent.h.
|
strong |
Defines global rendering modes that can be supported by the renderer.
Enumerator | |
---|---|
Normal | Regular shaded rendering. |
Wireframe | Wireframe rendering. |
Box | Bounding-box rendering over regular rendering. |
Definition at line 36 of file IRenderer.h.
|
strong |
Definition at line 26 of file RenderResource.h.
|
strong |
Definition at line 12 of file RenderResource.h.
|
strong |
Definition at line 78 of file ResourceBase.h.
|
strong |
Flags for describing resource attributes.
Definition at line 26 of file ResourceBase.h.
|
strong |
Flags for describing how to load a resource.
Definition at line 15 of file ResourceFlags.h.
|
strong |
Definition at line 72 of file ResourceStore.h.
|
strong |
Enumerator | |
---|---|
NoCachedContent | Never use cached data. |
PreferUncachedContent | Try fetching data before resorting to cached data. |
Definition at line 64 of file ResourceStore.h.
|
strong |
Resource types.
Definition at line 63 of file ResourceBase.h.
|
strong |
Definition at line 20 of file ScriptingEngine.h.
|
strong |
Definition at line 32 of file ScriptingEngine.h.
|
strong |
Definition at line 12 of file VariantDefinition.h.
|
strong |
Definition at line 21 of file VariantDefinition.h.
|
strong |
Definition at line 47 of file LightComponent.h.
|
strong |
Definition at line 15 of file ShapeComponent.h.
|
strong |
Shape types generated by mesh generator.
Enumerator | |
---|---|
None | No shape. |
Plane | Plane shape. |
Sphere | Generic sphere shape. |
SphereGeoTexSph | Sphere shape with geodesic tessellation and spherical texture coordinates. Texture coordinates are oriented similarly as gluSphere, i.e., s runs in the xy-plane starting at s=0 at +y running towards +x, and t runs with constant angular velocity from -z to z. Note that gluSphere produces cylindrical texcoords. |
SphereGeoTexCyl | Sphere shape with geodesic tessellation and cylindrical texture coordinates. Texture coordinates are identical to those of gluSphere, i.e., s runs in the xy-plane starting at s=0 at +y running towards +x, and t runs with constant angular velocity from -z to z. |
Cylinder | Generic cylinder shape. |
Cone | Generic cone shape. |
Cube | Generic cube shape. |
CubeTex2D | Cube shape with unit square texture coordinates over each face. |
CoordSys | Simple coordinate system where X axis is red, Y axis is green and Z axis is blue. |
CircularArc | Flat circular arc with inner (size.x) and outer (size.y) radius on the XY plane. Can be extended (arcStart == arcEnd) to encapsulate a whole circle to make a ring. |
Definition at line 18 of file ShapeType.h.
|
strong |
|
strong |
Sizing mode.
Definition at line 12 of file SpriteRenderComponent.h.
|
strong |
Definition at line 57 of file LightComponent.h.
|
strong |
Definition at line 12 of file FilterListTask.h.
|
strong |
Definition at line 37 of file RenderList.h.
|
strong |
Definition at line 35 of file TaskManager.cpp.
|
strong |
Texture dimensions.
Definition at line 83 of file MaterialProperty.h.
|
strong |
Texture loading flags. May be combined with resource load flags.
Enumerator | |
---|---|
None | No flags. |
ForceSynchronous | Force loading the resource synchronously. |
Reload | Reload action. |
NoDefaultName | No default name. |
ForceUnique | Force unique resource load when source resolves to existing resource. |
DoNotCache | Do not cache this resource for later retrieval. |
First | DO NOT USE. Intenal: First available flag for resource specific flags. |
Flip | Flip the texture data vertically before it is passed to the rendering backend. Default convention in cogs is that first pixel in memory maps to texcoord y=0, and this is usually interpreted as top of the image, and thus most image formats are passed directly unmodified. Setting this flags flips the texture such that y=0 maps to the last row of the texture data. See Documentation/conventions.md for more details. |
LinearColorSpace | For textures with RGBA format without color space information, mark the data as being in linear color space so no gamma conversion is performed. Useful when loading images for use as normal, roughness or other non-color maps. |
NoMipMaps | Do not generate mipmaps. By default, mipmaps will be generated for all texture format and sizes supported by the rendering backend, as this will provide the best visual quality and performance for normal texture data. |
NoDelete | Do not assume ownership of external texture so it won't be deleted by cogs. |
ColorSpaceFromLoadInfo | by default we want to retrieve colorspace info from the texture data, not from the format specified in TextureLoadInfo, however, if this flag is set, retrieve it from TextureLoadInfo instead. It is used when the application knows which colorspace should be used, regardless of the texture data. |
Definition at line 46 of file ResourceFlags.h.
|
strong |
Definition at line 21 of file IVideoDecoder.h.
|
strong |
Definition at line 71 of file MaterialOptions.h.
|
strong |
Variable flags, specifying variable behavior.
Definition at line 14 of file Variables.h.
|
strong |
Defines vertical alignment modes for text.
The text will positioned vertically relative to its resulting screen position according to its vertical alignment.
Definition at line 24 of file TextComponent.h.
|
strong |
Definition at line 68 of file IVideoDecoder.h.
|
strong |
Definition at line 17 of file ModelWriter.h.
void Cogs::Core::aboutCogs | ( | class Context * | , |
bool * | show | ||
) |
Definition at line 9 of file AboutInspector.cpp.
void Cogs::Core::addTaskType | ( | const StringView & | key, |
TaskCreator | creator, | ||
TaskDestroyer | destroyer | ||
) |
Definition at line 477 of file RenderTaskFactory.cpp.
bool Cogs::Core::addVariable | ( | ExpressionContext * | expressionContext, |
StringView | name, | ||
const ParsedValue & | p | ||
) |
Definition at line 213 of file RenderPipelineFactory.cpp.
void Cogs::Core::appendBytesize | ( | std::string & | out, |
size_t | byteSize | ||
) |
Definition at line 109 of file InspectorGuiHelper.cpp.
bool Cogs::Core::applyConstantBuffers | ( | class Context * | context, |
const MaterialProperties & | materialProperties, | ||
ConstantBuffers & | constantBuffers | ||
) |
Definition at line 22 of file MaterialBuilder.cpp.
void Cogs::Core::applyFieldValue | ( | void * | object, |
const Reflection::Field * | field, | ||
T & | value | ||
) |
Definition at line 30 of file EntityDefinition.cpp.
void Cogs::Core::applyFieldValues | ( | class Context * | context, |
std::span< FieldValue > | entityDefinition, | ||
ComponentModel::Entity * | entity | ||
) |
Apply defaults from the given entityDefinition to the given entity.
defaultValues | Values to apply. |
entity | Entity instance to apply default values to. |
Definition at line 165 of file EntityDefinition.cpp.
References Cogs::Core::EntityStore::addComponent(), Cogs::Reflection::Name::c_str(), Cogs::Core::Context::deferredResolution, Cogs::Core::Context::engine, Cogs::Core::EntityStore::findEntity(), Cogs::ComponentModel::Entity::getComponent(), Cogs::ComponentModel::Entity::getComponentHandle(), Cogs::Reflection::Field::getName(), Cogs::Reflection::Field::getTypeId(), Cogs::Core::Context::store, and Cogs::StringView::substr().
Referenced by Cogs::Core::EntityStore::createEntity().
bool Cogs::Core::applyMaterialDefinition | ( | class Context * | context, |
const MaterialDefinition & | materialDefinition, | ||
Material & | material | ||
) |
Definition at line 154 of file MaterialBuilder.cpp.
void Cogs::Core::applyMaterialInstance | ( | const DrawContext * | drawContext, |
const EffectBinding * | bindings, | ||
const RenderMaterialInstance * | renderMaterialInstance | ||
) |
Definition at line 387 of file RenderStateUpdater.cpp.
void Cogs::Core::applyMaterialInstanceValue | ( | Context * | context, |
void * | component, | ||
const Reflection::Field * | field, | ||
const FieldValue & | value | ||
) |
Definition at line 149 of file EntityDefinition.cpp.
void Cogs::Core::applyMaterialOption | ( | MaterialOptions & | options, |
const StringView & | key, | ||
const StringView & | value | ||
) |
Definition at line 13 of file MaterialOptions.cpp.
void Cogs::Core::applyMaterialPermutation | ( | RenderTaskContext * | taskContext, |
const DrawContext * | drawContext, | ||
const EffectBinding * | bindings, | ||
const RenderMaterialInstance * | renderMaterialInstance | ||
) |
Definition at line 379 of file RenderStateUpdater.cpp.
void Cogs::Core::applyMaterialPerObject | ( | const DrawContext * | drawContext, |
const RenderMaterialInstance * | renderMaterialInstance, | ||
const RenderItem & | renderItem | ||
) |
Definition at line 439 of file RenderStateUpdater.cpp.
void Cogs::Core::applyMaterialPerObjectBatched | ( | const DrawContext * | drawContext, |
const RenderMaterialInstance * | renderMaterialInstance, | ||
const RenderItem & | renderItem, | ||
size_t | o | ||
) |
Definition at line 415 of file RenderStateUpdater.cpp.
bool Cogs::Core::applyMaterialProperties | ( | class Context * | context, |
const MaterialProperties & | materialProperties, | ||
Material & | material | ||
) |
Definition at line 104 of file MaterialBuilder.cpp.
void Cogs::Core::applyMaterialProperties | ( | const DrawContext * | drawContext, |
const Material * | material, | ||
const ConstantBufferBindingHandle & | bufferBinding, | ||
const BufferHandle & | constantBuffer | ||
) |
Definition at line 26 of file RenderStateUpdater.cpp.
void Cogs::Core::applyRecursiveFieldChange | ( | ComponentModel::Entity * | entity, |
MemberType ComponentType::* | member, | ||
MemberType | value, | ||
Recurse | recurse | ||
) |
Recurse setting given field for all components of given type (e.g. 1) to given value. Recurse is Lambda: [](const Entity* entity) { return true if recurse to child:}
Definition at line 14 of file SceneTraversal.h.
References applyRecursiveFieldChange(), Cogs::Core::SceneComponent::children, Cogs::ComponentModel::Entity::getComponent(), and Cogs::ComponentModel::Entity::getComponents().
Referenced by applyRecursiveFieldChange().
void Cogs::Core::applyRenderMaterial | ( | const MaterialComponent & | component, |
const MaterialData & | data | ||
) |
Apply the material instance from the given component to the mesh render component (if found) on the same entity, making mesh rendering use said instance.
Definition at line 37 of file MaterialSystem.cpp.
References Cogs::ComponentModel::Component::getComponent(), Cogs::Core::MeshRenderComponent::material, and Cogs::Core::SubMeshRenderComponent::materials.
Referenced by Cogs::Core::MaterialSystem::update().
void Cogs::Core::assetInspector | ( | class Context * | context, |
bool * | show | ||
) |
Definition at line 559 of file AssetInspector.cpp.
void Cogs::Core::assetInspector | ( | Context * | context | ) |
Definition at line 163 of file AssetInspector.cpp.
void Cogs::Core::assetInstanceInspector | ( | Context * | context | ) |
Definition at line 459 of file AssetInspector.cpp.
void Cogs::Core::assetQueueInspector | ( | class Context * | context, |
bool * | show | ||
) |
Definition at line 576 of file AssetInspector.cpp.
void Cogs::Core::boundsInspector | ( | class Context * | context, |
bool * | show | ||
) |
Definition at line 147 of file BoundsInspector.cpp.
void Cogs::Core::bufferInspector | ( | class Context * | context, |
bool * | show | ||
) |
Definition at line 129 of file MeshInspector.cpp.
bool Cogs::Core::buildEffect | ( | class Context * | context, |
std::vector< std::pair< std::string, std::string > > & | definitions, | ||
const MaterialDefinition & | materialPermutation, | ||
const EnginePermutation & | permutation | ||
) |
Definition at line 609 of file ShaderBuilder.cpp.
bool Cogs::Core::buildEffectES3 | ( | class Context * | context, |
std::vector< std::pair< std::string, std::string > > & | definitions, | ||
MaterialDefinition & | materialPermutation, | ||
const EnginePermutation & | permutation, | ||
const uint32_t | multiViewCount | ||
) |
Definition at line 653 of file ShaderBuilderES3.cpp.
bool Cogs::Core::buildEffectWebGPU | ( | class Context * | context, |
std::vector< std::pair< std::string, std::string > > & | definitions, | ||
MaterialDefinition & | materialDefinition, | ||
const EnginePermutation & | permutation, | ||
const uint32_t | multiViewCount | ||
) |
Definition at line 637 of file ShaderBuilderWebGPU.cpp.
void Cogs::Core::byte_stream_nal_unit | ( | H264ParseData & | parse, |
const uint8_t * | data, | ||
size_t | size | ||
) |
Definition at line 1484 of file H264Parser.cpp.
void Cogs::Core::byte_stream_nal_unit | ( | H265ParseData & | parse, |
const uint8_t * | data, | ||
size_t | size | ||
) |
Definition at line 689 of file H265Parser.cpp.
Cogs::Geometry::BoundingBox Cogs::Core::calculateBounds | ( | Mesh * | mesh | ) |
Calculate a bounding box for the given mesh.
Definition at line 283 of file MeshHelper.cpp.
References calculateBounds(), and Cogs::Core::Mesh::getCount().
Referenced by calculateBounds(), Cogs::Core::InstancedMeshRenderSystem::update(), Cogs::Core::RenderSystem::update(), and Cogs::Core::SubMeshRenderSystem::update().
Cogs::Geometry::BoundingBox Cogs::Core::calculateBounds | ( | Mesh * | mesh, |
uint32_t | startIndex, | ||
uint32_t | vertexCount | ||
) |
Definition at line 288 of file MeshHelper.cpp.
void Cogs::Core::calculateLevelOfDetail | ( | Context * | context, |
const LodComponent & | component, | ||
LodData & | lodData, | ||
const glm::vec3 & | cameraCenter, | ||
const CameraData & | cameraData, | ||
bool | cameraChanged | ||
) |
Definition at line 57 of file LodSystem.cpp.
void Cogs::Core::calculateModelCost | ( | Context * | , |
ModelInstanceData & | modelData, | ||
Model * | model | ||
) |
Definition at line 855 of file AssetSystem.cpp.
int Cogs::Core::calculateSegments | ( | float | radius | ) |
Definition at line 219 of file GuiContainer.cpp.
bool Cogs::Core::canMerge | ( | SceneComponent * | sc | ) |
Definition at line 21 of file MergeCommand.cpp.
void Cogs::Core::changeSuffix | ( | std::string & | dst, |
const std::string & | from, | ||
const std::string & | to | ||
) |
Definition at line 25 of file EffectCache.cpp.
bool Cogs::Core::checkEntity | ( | Context * | context, |
AssetLodReference & | lodReference, | ||
AssetInstanceData & | assetInstance, | ||
EntityInstanceData & | entityInstance, | ||
EntityInstanceData * | parentInstance | ||
) |
Definition at line 1121 of file AssetSystem.cpp.
void Cogs::Core::clearEntity | ( | Context * | context, |
AssetInstanceData & | assetInstance, | ||
EntityInstanceData & | entityInstance | ||
) |
Definition at line 1071 of file AssetSystem.cpp.
void Cogs::Core::closeMergeState | ( | Context * | context, |
MergeMeshState & | state | ||
) |
Definition at line 201 of file MergeCommand.cpp.
void Cogs::Core::ComputePriority | ( | SeaCurrentsComponent & | seaCurrentsComp, |
const std::pair< glm::vec2, glm::vec2 > & | bounds, | ||
float | threshold, | ||
int | lowestPrio | ||
) |
Definition at line 402 of file SeaCurrentsExtension.cpp.
bool Cogs::Core::containsInvariantCase | ( | std::string_view | str, |
std::string_view | substr | ||
) |
Definition at line 142 of file InspectorGuiHelper.cpp.
void Cogs::Core::copyStream | ( | Mesh * | mesh, |
VertexDataType::EVertexDataType | dataType, | ||
Container & | container | ||
) |
Definition at line 39 of file MergeCommand.cpp.
COGSCORE_DLL_API std::string Cogs::Core::createAssetResourcePathFromIndex | ( | uint32_t | resourceIndex, |
AssetResourceType | assetResourceType | ||
) |
Definition at line 34 of file AssetComponent.cpp.
EntityPtr Cogs::Core::createAsSingleMeshItem | ( | Context * | context, |
Cogs::ComponentModel::Entity * | parent, | ||
std::vector< MeshHandle > & | originalMeshes, | ||
MeshReps & | meshes, | ||
MeshItems & | items | ||
) |
Definition at line 231 of file CommandHelpers.cpp.
void Cogs::Core::createDefaultEntityDefinitions | ( | class EntityStore * | entityStore | ) |
Create the default entity definitions supported by Cogs.
Note that entity definitions do not have validation performed at creation time, but will be validated whenever an entity is created from said definition.
entityStore | EntityStore instance to store the default definitions in. |
Definition at line 8 of file EntityDefinitions.cpp.
Referenced by Cogs::Core::EntityStore::EntityStore().
void Cogs::Core::createDocument | ( | const ScriptContextHandle & | scriptContext, |
litehtml::document * | document, | ||
const litehtml::element::ptr & | |||
) |
Definition at line 420 of file GuiContainer.cpp.
ScriptObject * Cogs::Core::createElement | ( | const ScriptContextHandle & | scriptContext, |
litehtml::document * | document, | ||
const litehtml::element::ptr & | found | ||
) |
Definition at line 335 of file GuiContainer.cpp.
Cogs::ComponentModel::Entity * Cogs::Core::createEntity | ( | Context * | context, |
SceneDefinition & | scene, | ||
const SceneEntityDefinition & | definition, | ||
Cogs::ComponentModel::Entity * | parent = nullptr |
||
) |
Definition at line 138 of file EntityCreator.cpp.
Cogs::Core::EntityPtr Cogs::Core::createEntity | ( | EntityCreationContext & | entityContext, |
const SceneEntityDefinition & | definition | ||
) |
Definition at line 30 of file EntityCreator.cpp.
void Cogs::Core::createEntityDefinition | ( | const std::string & | name, |
std::vector< std::string > | components, | ||
class EntityStore * | entityStore | ||
) |
Create a simple entity definition with the given name and list of components.
The definition will be added to the given entity store.
To create more advanced entity definitions see readEntityDefinition().
Definition at line 263 of file EntityDefinitions.cpp.
References Cogs::Core::EntityStore::addEntityDefinition(), Cogs::Core::EntityDefinition::components, and Cogs::Core::EntityDefinition::name.
Referenced by Cogs::Core::DrillingExtension::initialize(), and Cogs::Core::TerrainExtension::initialize().
Resource * Cogs::Core::createGpuResource | ( | const Handle & | handle, |
Collections::Pool< Resource > & | resources, | ||
RenderResources * | |||
) |
Definition at line 281 of file RenderResources.cpp.
void Cogs::Core::createLayerModel | ( | Context * | context, |
Model & | model, | ||
uint32_t | parentIndex, | ||
const std::string & | name, | ||
const std::vector< PositionNormalVertex > & | vertexBuffer, | ||
const std::vector< uint32_t > & | indexBuffer, | ||
PrimitiveType::EPrimitiveType | primitiveType, | ||
int | colorIndex | ||
) |
Definition at line 57 of file DimeLoader.cpp.
MaterialInstanceHandle Cogs::Core::createMaterial | ( | Context * | context, |
int | colorIndex, | ||
PrimitiveType::EPrimitiveType | primitiveType | ||
) |
Definition at line 37 of file DimeLoader.cpp.
MeshHandle Cogs::Core::createMesh | ( | Context * | context, |
SceneComponent * | sc | ||
) |
Definition at line 48 of file MergeCommand.cpp.
EntityPtr Cogs::Core::createNewMeshItems | ( | Context * | context, |
Cogs::ComponentModel::Entity * | parent, | ||
std::vector< MeshHandle > & | originalMeshes, | ||
MeshReps & | meshes, | ||
MeshItems & | items | ||
) |
Definition at line 216 of file CommandHelpers.cpp.
bool Cogs::Core::createPipeline | ( | RenderTaskContext * | renderContext, |
const RenderPipelineDefinition & | pipelineDefinition, | ||
RenderTaskResources & | pipelineResources, | ||
RenderPipeline & | pipeline, | ||
const StringView & | path, | ||
const CameraData * | pushCameraData, | ||
const PipelineOptions & | options = PipelineOptions() , |
||
const std::string & | prefix = "" |
||
) |
Definition at line 714 of file RenderPipelineFactory.cpp.
bool Cogs::Core::createPipelineRecursive | ( | Cogs::Core::RenderTaskContext * | renderContext, |
const Cogs::Core::RenderPipelineDefinition & | pipelineDefinition, | ||
Cogs::Core::RenderTaskResources & | pipelineResources, | ||
Cogs::Core::RenderPipeline & | pipeline, | ||
const Cogs::Core::PipelineOptions & | options, | ||
Cogs::Core::ExpressionContext * | expressionContext, | ||
const std::vector< ParsedValue > & | attributes, | ||
const std::string & | prefix, | ||
const std::string & | prefixOuter | ||
) |
Definition at line 387 of file RenderPipelineFactory.cpp.
RenderBuffer * Cogs::Core::createRenderBuffer | ( | RenderResources * | renderResources, |
const std::string & | resourceName, | ||
const RenderResourceDefinition & | r, | ||
ExpressionContext * | expressionContext | ||
) |
Definition at line 233 of file RenderPipelineFactory.cpp.
Cogs::Core::RenderTask * Cogs::Core::createRenderTask | ( | RenderTaskContext * | taskContext, |
const RenderTaskDefinition & | taskDefinition, | ||
std::list< std::unique_ptr< Cogs::Core::SubContext > > & | subContexts, | ||
ExpressionContext * | expressionContext, | ||
const PipelineOptions & | options = PipelineOptions() |
||
) |
Definition at line 290 of file RenderTaskFactory.cpp.
RenderTexture * Cogs::Core::createRenderTexture | ( | RenderTaskContext * | renderContext, |
RenderPipeline & | pipeline, | ||
RenderTaskResources & | pipelineResources, | ||
const std::string & | resourceName, | ||
const std::string & | prefix, | ||
const RenderResourceDefinition & | r, | ||
ExpressionContext * | expressionContext | ||
) |
Definition at line 270 of file RenderPipelineFactory.cpp.
void Cogs::Core::createRoundedPath | ( | const ImVec2 & | a, |
const ImVec2 & | b, | ||
const litehtml::border_radiuses & | radius, | ||
float | width = 1.0f |
||
) |
Definition at line 224 of file GuiContainer.cpp.
TaskType * Cogs::Core::createTask | ( | RenderTaskContext * | renderContext, |
bool | initialize = true |
||
) |
Definition at line 56 of file RenderTaskFactory.cpp.
void Cogs::Core::decodePotreeBin | ( | PotreeDecodeOutData & | out, |
const PotreeDecodeInData & | in, | ||
const Cogs::FileContents & | inData | ||
) |
Definition at line 360 of file ParseBin.cpp.
void Cogs::Core::destroyRenderTask | ( | RenderTaskContext * | renderContext, |
RenderTask * | task | ||
) |
Definition at line 472 of file RenderTaskFactory.cpp.
void Cogs::Core::dispatch | ( | const Collection & | receivers, |
size_t | messageId, | ||
Args... | args | ||
) |
Definition at line 57 of file DynamicComponentSystem.cpp.
void Cogs::Core::dispatchMessages | ( | Context * | context, |
AssetInstanceData & | assetInstance | ||
) |
Definition at line 1632 of file AssetSystem.cpp.
void Cogs::Core::dispatchMouseEvent | ( | ScriptContextHandle | scriptContext, |
const litehtml::element::ptr & | el, | ||
const StringView & | eventName, | ||
const StringView & | attributeName, | ||
int | x, | ||
int | y | ||
) |
Definition at line 436 of file GuiContainer.cpp.
void Cogs::Core::dispatchRef | ( | const Collection & | receivers, |
size_t | messageId, | ||
Args... | args | ||
) |
Definition at line 63 of file DynamicComponentSystem.cpp.
void Cogs::Core::drawCoordSys | ( | RenderTaskContext * | taskContext, |
DrawContext * | drawContext, | ||
const RenderItem * | item, | ||
const glm::mat4 & | M, | ||
bool | overlay = false |
||
) |
Definition at line 262 of file DebugGeometryRenderers.cpp.
void Cogs::Core::drawOneOneWireBox | ( | RenderTaskContext * | taskContext, |
DrawContext * | drawContext, | ||
const RenderItem * | item, | ||
const glm::mat4 & | M, | ||
unsigned | color | ||
) |
Definition at line 256 of file DebugGeometryRenderers.cpp.
void Cogs::Core::drawUnitWireBox | ( | RenderTaskContext * | taskContext, |
DrawContext * | drawContext, | ||
const RenderItem * | item, | ||
const glm::mat4 & | M, | ||
unsigned | color | ||
) |
Definition at line 250 of file DebugGeometryRenderers.cpp.
void Cogs::Core::enforcePropertyFlags | ( | const MaterialProperty & | prop, |
MaterialPropertyFlags | flags, | ||
void * | data | ||
) |
Definition at line 58 of file Material.cpp.
void Cogs::Core::engineInspector | ( | class Context * | context, |
bool * | show | ||
) |
Definition at line 189 of file MeshInspector.cpp.
void Cogs::Core::entityInspector | ( | class Context * | context, |
bool * | show | ||
) |
Definition at line 680 of file EntityInspector.cpp.
glm::vec3 Cogs::Core::euclidean | ( | const glm::vec4 & | a | ) |
Definition at line 540 of file AssetSystem.cpp.
bool Cogs::Core::evaluateCondition | ( | Context * | context, |
const StringView & | condition, | ||
const RenderPipelineDefinition & | pipelineDefinition, | ||
const std::vector< ParsedValue > & | attributes | ||
) |
Definition at line 32 of file RenderPipelineFactory.cpp.
void Cogs::Core::evaluateTaskDependencies | ( | std::list< RenderTask * > | tasks, |
const RenderTaskResources & | globalResources, | ||
RenderPipeline & | pipeline | ||
) |
Definition at line 101 of file RenderPipelineFactory.cpp.
bool COGSCORE_DLL_API Cogs::Core::extract_nalu_header | ( | H265NALheader & | header, |
const uint8_t * | data, | ||
size_t | size | ||
) |
Definition at line 848 of file H265Parser.cpp.
bool Cogs::Core::extract_nalu_header | ( | NALheader & | header, |
const uint8_t * | data, | ||
size_t | size | ||
) |
Definition at line 1658 of file H264Parser.cpp.
void Cogs::Core::extract_spspps | ( | const uint8_t * | data, |
size_t | size, | ||
std::string & | sps, | ||
std::string & | pps | ||
) |
Definition at line 1599 of file H264Parser.cpp.
void Cogs::Core::extract_spspps | ( | const uint8_t * | data, |
size_t | size, | ||
std::string & | vps, | ||
std::string & | sps, | ||
std::string & | pps | ||
) |
Definition at line 784 of file H265Parser.cpp.
std::span< const uint32_t > Cogs::Core::extractIndexStreamUint32 | ( | Memory::MemoryBuffer & | backing, |
MeshHandle | mesh | ||
) |
Definition at line 73 of file MeshHelper.cpp.
std::span< const glm::vec3 > Cogs::Core::extractSemanticStreamVec3 | ( | Memory::MemoryBuffer & | backing, |
MeshHandle | mesh, | ||
const Cogs::ElementSemantic | semantic, | ||
size_t | semanticIndex = 0 |
||
) |
Definition at line 12 of file MeshHelper.cpp.
size_t Cogs::Core::find_next_frame | ( | const uint8_t * | data, |
size_t | size | ||
) |
Definition at line 1690 of file H264Parser.cpp.
std::shared_ptr< litehtml::element > Cogs::Core::findElement | ( | const std::shared_ptr< litehtml::element > & | e, |
const StringView & | id | ||
) |
Definition at line 39 of file GuiContainer.cpp.
Definition at line 90 of file CollisionSystem.cpp.
uint32_t Cogs::Core::findFirstLodChild | ( | const AssetDefinition & | definition, |
uint32_t | firstChild, | ||
int32_t | targetLevel | ||
) |
Definition at line 837 of file AssetSystem.cpp.
std::string Cogs::Core::findFont | ( | const StringView & | family, |
int | |||
) |
Definition at line 56 of file GuiContainer.cpp.
bool Cogs::Core::findHierarchyWithMatch | ( | const Cogs::ComponentModel::Entity & | entity, |
std::string_view | entityNamePattern, | ||
std::string_view | componentNamePattern | ||
) |
Check if entity with optional matching criteria is found matching entity or a siebling. Uses case invariant string contains.
entity | - Entity to check |
entityNamePattern | - If not empty, the entity or sibling should have name containing string |
componentNamePattern | - If not empty, the entity or sibling should have component with component type containing string |
Definition at line 148 of file InspectorGuiHelper.cpp.
References Cogs::Reflection::Name::c_str(), Cogs::Core::SceneComponent::children, findHierarchyWithMatch(), Cogs::ComponentModel::Entity::getComponent(), Cogs::ComponentModel::Entity::getComponents(), Cogs::Reflection::Type::getName(), Cogs::ComponentModel::Entity::getName(), and Cogs::ComponentModel::Component::getType().
Referenced by findHierarchyWithMatch().
|
inline |
Remove characters that are not valid for filenames lik "<>:/\?" etc.
Definition at line 125 of file CommandParseHelpers.h.
Referenced by Cogs::Core::ExportCommand::apply().
void Cogs::Core::fontInspector | ( | class Context * | context, |
bool * | show | ||
) |
Definition at line 10 of file FontInspector.cpp.
void Cogs::Core::forwardRenderProperties | ( | SceneComponent * | sceneComp, |
const RenderComponent * | masterRenderComp | ||
) |
Definition at line 38 of file ModelSystem.cpp.
void Cogs::Core::freeTask | ( | RenderTask * | task, |
RenderTaskContext * | renderContext | ||
) |
Definition at line 77 of file RenderTaskFactory.cpp.
void Cogs::Core::freeTasks | ( | std::vector< RenderTask * > & | tasks, |
RenderTaskContext * | renderContext | ||
) |
Definition at line 483 of file RenderTaskFactory.cpp.
Cogs::Core::FrustumPlanes Cogs::Core::frustumClassifyBoundingBox | ( | const glm::mat4 & | localToClip, |
const glm::vec3 & | min, | ||
const glm::vec3 & | max | ||
) |
Definition at line 49 of file FrustumClassification.cpp.
Cogs::Core::FrustumPlanes Cogs::Core::frustumClassifyBoundingBox | ( | const glm::mat4 & | localToClip, |
const glm::vec3 & | min, | ||
const glm::vec3 & | max, | ||
const float | discardThresholdSqr, | ||
const float | keepThreshold | ||
) |
Definition at line 10 of file FrustumClassification.cpp.
bool Cogs::Core::frustumClassifyVertex | ( | FrustumPlanes * | dstPtr, |
const glm::mat4 & | matrix, | ||
const glm::vec3 * | positions, | ||
const size_t | count | ||
) |
Definition at line 545 of file RayIntersection.cpp.
void Cogs::Core::gammaDebugger | ( | class Context * | , |
bool * | show | ||
) |
Definition at line 29 of file GammaDebugger.cpp.
void Cogs::Core::gatherMaterials | ( | ComponentModel::Entity * | entity, |
std::unordered_map< EntityId, MaterialInstanceHandle > & | materials | ||
) |
Definition at line 46 of file ResourceCommands.cpp.
void Cogs::Core::generateMeshNormals | ( | Mesh * | mesh | ) |
Generate normals.
Definition at line 112 of file MeshHelper.cpp.
References Cogs::Core::Mesh::getStream(), Cogs::Core::Mesh::hasStream(), Cogs::Core::Mesh::isCCW(), Cogs::Core::Mesh::isIndexed(), Cogs::Core::Mesh::mapPositionsReadOnly(), Cogs::Core::DataStream::numElements, Cogs::Core::Mesh::setNormals(), and Cogs::PrimitiveType::TriangleList.
Referenced by Cogs::Core::GenNormalsCommand::apply(), and generateMeshTangents().
void Cogs::Core::generateMeshTangents | ( | Mesh * | mesh | ) |
Generate tangents.
Definition at line 171 of file MeshHelper.cpp.
References generateMeshNormals(), Cogs::Core::Mesh::getCount(), Cogs::Core::Mesh::hasStream(), Cogs::Core::Mesh::isCCW(), Cogs::Core::Mesh::isIndexed(), Cogs::Core::MappedStreamReadOnly< Element >::isValid(), Cogs::Core::Mesh::mapNormalsReadOnly(), Cogs::Core::Mesh::mapPositionsReadOnly(), Cogs::Core::Mesh::mapTexCoordsReadOnly(), Cogs::Core::Mesh::setTangents(), and Cogs::PrimitiveType::TriangleList.
Referenced by Cogs::Core::GenerateTangentsCommand::apply().
|
inline |
size_t Cogs::Core::getAllocatedBytes | ( | const Memory::Allocator * | allocator | ) |
Definition at line 97 of file MemoryContext.cpp.
size_t Cogs::Core::getAllocationCount | ( | const Memory::Allocator * | allocator | ) |
Definition at line 102 of file MemoryContext.cpp.
float Cogs::Core::getBorderWidth | ( | const litehtml::borders & | borders | ) |
Definition at line 206 of file GuiContainer.cpp.
|
inline |
Definition at line 135 of file FontManager.cpp.
size_t Cogs::Core::getCode | ( | EffectDescription & | desc | ) |
Definition at line 14 of file EffectCache.cpp.
const MaterialInstance * Cogs::Core::getControllingInstance | ( | const MaterialInstance * | instance, |
MaterialFlags::EMaterialFlags | overrideFlag | ||
) |
Definition at line 57 of file GenerateListTask.cpp.
MaterialInstanceHandle Cogs::Core::getDefaultMaterialInstance | ( | Context * | context | ) |
Definition at line 242 of file DebugGeometryRenderers.cpp.
float Cogs::Core::getDepth | ( | class Context * | context, |
const EntityId | id, | ||
const glm::vec3 | position | ||
) |
Definition at line 28 of file GetDepth.cpp.
void * Cogs::Core::getDispatcherArg | ( | ) |
Definition at line 51 of file DynamicComponentSystem.cpp.
void * Cogs::Core::getDispatcherArg | ( | Args... | args | ) |
Definition at line 40 of file DynamicComponentSystem.cpp.
DrawContext Cogs::Core::getDrawContext | ( | RenderTaskContext * | renderContext | ) |
Definition at line 127 of file Renderer.cpp.
Cogs::Core::ReaderExtension * Cogs::Core::getExtensionReader | ( | size_t | code | ) |
Definition at line 481 of file ResourceReader.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
void Cogs::Core::getLodReference | ( | Context * | context, |
AssetInstanceData & | assetInstance, | ||
AssetLodReference & | lodRef, | ||
Entity * | ref | ||
) |
Definition at line 563 of file AssetSystem.cpp.
RenderItemFlags Cogs::Core::getMaterialFlags | ( | const MaterialInstance * | materialInstance | ) |
Definition at line 77 of file GenerateListTask.cpp.
size_t Cogs::Core::getMaterialHash | ( | const MaterialComponent & | component | ) |
Creates a hash value from the material properties in the given component.
The material property fields in the component are treated as an array of bytes, and are hashed accordingly, giving us an unique value for different sets of properties.
NOTE: Changing the layout of the material component must result in reviewing this method.
Definition at line 25 of file MaterialSystem.cpp.
References Cogs::fnv1a().
Referenced by Cogs::Core::MergeMaterialCommand::apply(), and Cogs::Core::MaterialSystem::update().
MaterialInstanceHandle Cogs::Core::getMaterialInstance | ( | Context * | context | ) |
Definition at line 54 of file ModelSystem.cpp.
void Cogs::Core::getMeshItems | ( | Context * | context, |
MeshItems & | items, | ||
Cogs::Core::EntityIds | entities, | ||
uint32_t | primitiveTypeMask = ~0u |
||
) |
Definition at line 378 of file CommandHelpers.cpp.
void Cogs::Core::getMeshItems | ( | Context * | context, |
MeshItems & | items, | ||
EntityPtr | entity, | ||
uint32_t | primitiveTypeMask = ~0u |
||
) |
Definition at line 359 of file CommandHelpers.cpp.
uint32_t Cogs::Core::getMeshSignature | ( | const Mesh * | mesh | ) |
Definition at line 183 of file MergeCommand.cpp.
|
inline |
Find and get value of option in vector as float. Return default if not found.
Definition at line 45 of file CommandParseHelpers.h.
|
inline |
Find and get value of option in vector as size_t. Return default if not found.
Definition at line 31 of file CommandParseHelpers.h.
|
inline |
Find and get value of option in vector as a string. Return default if not found.
Definition at line 19 of file CommandParseHelpers.h.
Referenced by Cogs::Core::DumpStatsCommand::apply(), Cogs::Core::ExportCommand::apply(), Cogs::Core::MergeCommand::apply(), Cogs::Core::MergeMeshCommand::apply(), Cogs::Core::ScaleMeshCommand::apply(), and replaceToken().
size_t Cogs::Core::getPeakBytes | ( | const Memory::Allocator * | allocator | ) |
Definition at line 107 of file MemoryContext.cpp.
size_t Cogs::Core::getPeakCount | ( | const Memory::Allocator * | allocator | ) |
Definition at line 112 of file MemoryContext.cpp.
Collections::Pool< ResourceType > & Cogs::Core::getPool | ( | ) |
Definition at line 48 of file RenderTaskFactory.cpp.
COGSCORE_DLL_API uint16_t Cogs::Core::getRasterizerState | ( | Renderer * | renderer, |
const RenderItem & | renderBlock, | ||
const RenderPassOptions & | passOptions, | ||
bool | flipWindingOrder, | ||
bool | forceBlockWinding | ||
) |
Definition at line 258 of file FilterListTask.cpp.
RenderTaskContext Cogs::Core::getRenderTaskContext | ( | Renderer * | renderer | ) |
Definition at line 112 of file Renderer.cpp.
std::vector< std::string > Cogs::Core::getResourceManifest | ( | class Context * | context | ) |
Definition at line 7 of file ResourceManifest.cpp.
std::string Cogs::Core::getResourceName | ( | Context * | context, |
ResourceHandleBase * | fieldValue, | ||
std::unordered_set< ResourceHandleBase > * | resources | ||
) |
Definition at line 189 of file EntityWriter.cpp.
|
constexpr |
Definition at line 24 of file ResourceManager.h.
|
constexpr |
Definition at line 30 of file ResourceManager.h.
|
constexpr |
Definition at line 27 of file ResourceManager.h.
|
constexpr |
Definition at line 32 of file ResourceManager.h.
|
constexpr |
Definition at line 28 of file ResourceManager.h.
|
constexpr |
Definition at line 29 of file ResourceManager.h.
|
constexpr |
Definition at line 31 of file ResourceManager.h.
|
constexpr |
Definition at line 25 of file ResourceManager.h.
|
constexpr |
Definition at line 23 of file ResourceManager.h.
|
constexpr |
Definition at line 26 of file ResourceManager.h.
|
inline |
Definition at line 468 of file GuiContainer.cpp.
TerrainData * Cogs::Core::getTerrainData | ( | Context * | context, |
EntityId | id | ||
) |
Definition at line 25 of file TerrainFunctions.cpp.
void COGSCORE_DLL_API Cogs::Core::getTransparencyState | ( | RenderStates & | , |
const MaterialInstance * | materialInstance, | ||
RenderItem & | renderItem | ||
) |
Definition at line 66 of file GenerateListTask.cpp.
std::string Cogs::Core::getUniqueHeader | ( | const std::string & | header | ) |
Definition at line 82 of file InspectorGuiHelper.cpp.
std::string Cogs::Core::getUniqueMaterialName | ( | Context * | context | ) |
Definition at line 165 of file EntityWriter.cpp.
float Cogs::Core::getWorldToScreenScale | ( | Context * | , |
const CameraData & | cameraData, | ||
const glm::vec3 & | worldCenter, | ||
float | normRadius | ||
) |
Definition at line 44 of file DepthAxisSystem.cpp.
void Cogs::Core::guiBegin | ( | const std::string & | title, |
bool * | show | ||
) |
Definition at line 68 of file InspectorGuiHelper.cpp.
void Cogs::Core::guiEnd | ( | ) |
Definition at line 76 of file InspectorGuiHelper.cpp.
|
inline |
Check if the given resource is valid, that is not equal to NoHandle or InvalidHandle.
handle | A handle to a resource to check for validity. |
Definition at line 212 of file ResourceHandle.h.
Referenced by Cogs::Core::RenderMaterialInstance::checkReady(), Cogs::Core::VideoPlaybackSystem::destroyComponent(), Cogs::Core::ResourceManager< ResourceType, LoadInfoType >::get(), Cogs::Core::ModelSystem::getLoadProgress(), Cogs::Core::TextureManager::getTexture(), Cogs::Core::FontManager::handleActivation(), Cogs::Core::Image360::RendererExtension::handleEvent(), Cogs::Core::PotreeRenderer::handleEvent(), Cogs::Core::MaterialInstance::hasTransparency(), Cogs::Core::TextureManager::initialize(), Cogs::Core::EchoSounder::UniformGridSystem::preUpdate(), Cogs::Core::DepthAxisSystem::update(), Cogs::Core::VariableExtrusionSystem::update(), Cogs::Core::Image360System::update(), Cogs::Core::VideoPlaybackSystem::update(), Cogs::Core::Volumetric::PointVisualizationSystem::update(), Cogs::Core::ZipSystem::update(), Cogs::Core::MaterialSystem::update(), Cogs::Core::CameraSystem::update(), Cogs::Core::InstancedModelSystem::update(), Cogs::Core::ModelSystem::update(), Cogs::Core::StaticModelSystem::update(), and Cogs::Core::ShapeSystem::update().
|
inline |
Definition at line 217 of file ResourceHandle.h.
bool Cogs::Core::handleResourceAlias | ( | const RenderResourceDefinition & | r, |
const std::string & | resourceName, | ||
const std::string & | prefix, | ||
RenderTaskResources & | pipelineResources | ||
) |
Definition at line 368 of file RenderPipelineFactory.cpp.
|
inline |
Definition at line 78 of file RenderList.h.
|
constexpr |
Definition at line 82 of file ShapeType.h.
bool Cogs::Core::hasRadius | ( | const litehtml::border_radiuses & | radius | ) |
Definition at line 201 of file GuiContainer.cpp.
void Cogs::Core::hrd_parameters | ( | const uint8_t * | , |
size_t | , | ||
uint32_t | commonInfPresentFlag, | ||
uint32_t | maxNumbSubLayersMinus1 | ||
) |
Definition at line 235 of file H265Parser.cpp.
bool Cogs::Core::inheritMaterialVariants | ( | std::vector< ShaderVariantDefinition > & | definitionVariants, |
std::span< const ShaderVariantDefinition > | sourceVariants, | ||
const Cogs::StringView & | definitionName, | ||
const Cogs::StringView & | sourceName, | ||
bool | errorOnExisting = true |
||
) |
Definition at line 1494 of file MaterialReader.cpp.
void Cogs::Core::initializeAssetInstance | ( | AssetInstanceData & | assetInstance | ) |
Definition at line 365 of file AssetSystem.cpp.
void Cogs::Core::initializeEngineBuffers | ( | IBuffers * | buffers, |
ICapabilities * | capabilites, | ||
EngineBuffers & | engineBuffers | ||
) |
Definition at line 19 of file EngineBuffers.cpp.
COGSCORE_DLL_API RenderPassOptions Cogs::Core::initRenderPassOptions | ( | const RenderItem & | renderBlock, |
const CameraData & | camData | ||
) |
Definition at line 243 of file FilterListTask.cpp.
int Cogs::Core::inputCallback | ( | ImGuiInputTextCallbackData * | ) |
Definition at line 27 of file VariableInspector.cpp.
void Cogs::Core::inputInspector | ( | class Context * | context, |
bool * | show | ||
) |
Definition at line 13 of file InputInspector.cpp.
bool Cogs::Core::intersectMesh | ( | std::vector< RayIntersectionHit > & | hits, |
std::vector< FrustumPlanes > & | scratch, | ||
const glm::mat4 & | localPickMatrix, | ||
const Mesh & | mesh, | ||
uint32_t | startIndex = 0 , |
||
uint32_t | vertexCount = -1 , |
||
uint32_t | subMeshIndex = -1 |
||
) |
Definition at line 397 of file RayIntersection.cpp.
bool Cogs::Core::isCharacter | ( | char | c | ) |
Definition at line 812 of file Parsing.cpp.
|
inline |
Check if the given primitive type represents lines.
Definition at line 241 of file Mesh.h.
References Cogs::PrimitiveType::LineList.
Referenced by Cogs::Core::MaterialSystem::update().
bool Cogs::Core::isNumber | ( | char | c | ) |
Definition at line 816 of file Parsing.cpp.
bool Cogs::Core::isOutside | ( | AssetLodReference & | lodReference, |
const Geometry::BoundingBox & | bbox | ||
) |
Definition at line 634 of file AssetSystem.cpp.
bool Cogs::Core::isPipelineFresh | ( | RenderTaskContext * | renderContext, |
const RenderPipeline & | pipeline | ||
) |
Definition at line 754 of file RenderPipelineFactory.cpp.
bool Cogs::Core::loadCogsBin1 | ( | Context * | context, |
const ModelLoadInfo & | loadInfo, | ||
std::unique_ptr< FileContents > | contents | ||
) |
Definition at line 63 of file CogsBin1Loader.cpp.
bool Cogs::Core::loadCogsBin3 | ( | Context * | context, |
const ModelLoadInfo & | loadInfo, | ||
std::unique_ptr< FileContents > | contents | ||
) |
Definition at line 872 of file CogsBin3Loader.cpp.
glm::vec2 Cogs::Core::localSphereRadiusInScreenSpace | ( | const glm::mat4 & | localToClip, |
const glm::mat4 & | clipToLocal, | ||
const glm::vec4 & | clipPosition, | ||
const float | localRadius | ||
) |
Given a screen space reference position and a local space radius, find the corresponding screen space radii (along screen x and y).
Definition at line 7 of file TessellationPredicates.cpp.
Referenced by Cogs::Core::TrajectoryCrossSectionsSystem::update(), and Cogs::Core::MeshGeneratorSystem::update().
|
inline |
Definition at line 96 of file LoftedCrossSectionsComponent.h.
|
inline |
Definition at line 102 of file LoftedCrossSectionsComponent.h.
|
inline |
Definition at line 84 of file LoftedCrossSectionsComponent.h.
|
inline |
Definition at line 90 of file LoftedCrossSectionsComponent.h.
|
inline |
Definition at line 76 of file CommandParseHelpers.h.
bool Cogs::Core::matchChars | ( | const char | c, |
const StringView & | chars | ||
) |
Definition at line 253 of file Parsing.cpp.
void Cogs::Core::materialInspector | ( | class Context * | context, |
bool * | show | ||
) |
Definition at line 221 of file MaterialInspector.cpp.
void Cogs::Core::materialInstanceInspector | ( | class Context * | context, |
bool * | show | ||
) |
Definition at line 241 of file MaterialInspector.cpp.
void Cogs::Core::meshInspector | ( | class Context * | context, |
bool * | show | ||
) |
Definition at line 26 of file MeshInspector.cpp.
void Cogs::Core::modelInspector | ( | class Context * | context, |
bool * | show | ||
) |
Definition at line 18 of file ModelInspector.cpp.
|
inline |
|
inline |
|
inline |
Bitmask convenience operator.
Definition at line 93 of file Features.h.
|
inline |
Bitmask convenience operator.
Definition at line 41 of file FrustumClassification.h.
|
inline |
Bitmask convenience operator.
Definition at line 99 of file Features.h.
|
inline |
Bitmask convenience operator.
Definition at line 47 of file FrustumClassification.h.
|
inline |
Bitmask convenience operator.
Definition at line 80 of file Features.h.
|
inline |
Bitmask convenience operator.
Definition at line 28 of file FrustumClassification.h.
|
inline |
Bitmask convenience operator.
Definition at line 86 of file Features.h.
|
inline |
Bitmask convenience operator.
Definition at line 34 of file FrustumClassification.h.
void Cogs::Core::packMeshItems | ( | Context * | context, |
std::vector< MeshHandle > & | originalMeshes, | ||
MeshReps & | meshes, | ||
MeshItems & | items, | ||
bool | update = true |
||
) |
Definition at line 545 of file CommandHelpers.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
void COGSCORE_DLL_API Cogs::Core::parse_mpeg_ts | ( | MPEGTransportStreamData & | parse, |
uint8_t * | data, | ||
size_t | size | ||
) |
Definition at line 721 of file MPEG_TS.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool Cogs::Core::parseBool | ( | const StringView & | token, |
bool | defaultValue = false |
||
) |
Definition at line 526 of file Parsing.cpp.
bool Cogs::Core::parseBool_ | ( | bool & | rv, |
const StringView & | token | ||
) |
Parse a bool putting return value in rv and returning whether or not parsing was successful.
Definition at line 538 of file Parsing.cpp.
References Cogs::hash(), and Cogs::StringView::hashLowercase().
bool Cogs::Core::parseCloudJs | ( | Context * | , |
PotreeData * | poData, | ||
const Cogs::FileContents * | data | ||
) |
Definition at line 540 of file ParseMetadataFile.cpp.
bool Cogs::Core::parseDefinition | ( | Context * | context, |
const Value & | jsonDefinition, | ||
RenderPipelineDefinition & | definition | ||
) |
Definition at line 276 of file RenderPipelineReader.cpp.
double Cogs::Core::parseDouble | ( | const StringView & | token, |
double | defaultValue = 0 |
||
) |
Definition at line 492 of file Parsing.cpp.
int Cogs::Core::parseEnum | ( | const StringView & | token, |
const Reflection::Type & | type, | ||
int | defaultValue | ||
) |
Definition at line 774 of file Parsing.cpp.
T Cogs::Core::parseEnum | ( | const StringView & | token, |
T | defaultValue = T() |
||
) |
int Cogs::Core::parseEnumFlags | ( | const char *& | current, |
const char * | end, | ||
const Reflection::Type & | type, | ||
int | defaultValue | ||
) |
Definition at line 821 of file Parsing.cpp.
int Cogs::Core::parseEnumFlags | ( | const StringView & | token, |
const Reflection::Type & | type, | ||
int | defaultValue | ||
) |
Definition at line 881 of file Parsing.cpp.
T Cogs::Core::parseEnumFlags | ( | const StringView & | token, |
T | defaultValue = T() |
||
) |
float Cogs::Core::parseFloat | ( | const StringView & | token, |
float | defaultValue = 0 |
||
) |
Definition at line 499 of file Parsing.cpp.
int32_t Cogs::Core::parseInt | ( | const StringView & | token, |
int32_t | defaultValue = 0 |
||
) |
Definition at line 504 of file Parsing.cpp.
bool Cogs::Core::parseInt_ | ( | int32_t & | rv, |
const StringView & | token | ||
) |
Parse an int putting return value in rv and returning whether or not parsing was successful.
Definition at line 559 of file Parsing.cpp.
References Cogs::StringView::data(), Cogs::StringView::length(), and Cogs::StringView::size().
uint64_t Cogs::Core::parseISO8601 | ( | const StringView & | iso8601 | ) |
Parse ISO 8601 timestamps.
Returns a UTC millisecond count since 1970-01-01 00:00:00, with an optional timezone millisecond offset in tzOffset.
Definition at line 575 of file Parsing.cpp.
References parseISO8601().
Referenced by parseISO8601().
uint64_t Cogs::Core::parseISO8601 | ( | const StringView & | iso8601, |
int & | tzOffset | ||
) |
Definition at line 580 of file Parsing.cpp.
Document Cogs::Core::parseJson | ( | class Context * | context, |
const StringView & | fileName, | ||
JsonParseFlags | flags = JsonParseFlags::None |
||
) |
Definition at line 162 of file JsonParser.cpp.
Document Cogs::Core::parseJson | ( | class Context * | context, |
std::unique_ptr< FileContents > | contents, | ||
JsonParseFlags | flags = JsonParseFlags::None |
||
) |
Definition at line 183 of file JsonParser.cpp.
Document Cogs::Core::parseJson | ( | const StringView & | content, |
JsonParseFlags | flags | ||
) |
Definition at line 79 of file JsonParser.cpp.
bool Cogs::Core::parseMaterial | ( | class Context * | context, |
const StringView & | path, | ||
MaterialDefinition & | definition | ||
) |
Definition at line 1432 of file MaterialReader.cpp.
void Cogs::Core::parseMaterialInstanceProperty | ( | const Value & | value, |
const StringView & | key, | ||
const Material * | material, | ||
FieldValue & | propertyValue, | ||
ExpressionContext * | ec | ||
) |
Definition at line 221 of file ResourceReader.cpp.
void Cogs::Core::parseOptions | ( | const Value & | jsonOptions, |
RenderPipelineDefinition & | definition | ||
) |
Definition at line 40 of file RenderPipelineReader.cpp.
RenderTaskParameters Cogs::Core::parseParameters | ( | RenderTaskContext * | renderContext, |
const RenderTaskDefinition & | taskDefinition, | ||
const PipelineOptions & | options | ||
) |
Definition at line 195 of file RenderTaskFactory.cpp.
Cogs::Core::RenderPipelineDefinition Cogs::Core::parsePipeline | ( | class Context * | context, |
const StringView & | resource, | ||
bool | isContent = false |
||
) |
Definition at line 344 of file RenderPipelineReader.cpp.
void Cogs::Core::parseQueryString | ( | std::vector< ParsedValue > & | attributes, |
StringView | query | ||
) |
Definition at line 936 of file Parsing.cpp.
void Cogs::Core::parseResource | ( | const Value & | value, |
RenderResourceDefinition & | resource, | ||
const std::string & | |||
) |
Definition at line 153 of file RenderPipelineReader.cpp.
bool Cogs::Core::parseResources | ( | const Value & | jsonResources, |
RenderPipelineDefinition & | definition, | ||
const std::string & | condition = "" |
||
) |
Definition at line 184 of file RenderPipelineReader.cpp.
RenderResourceType Cogs::Core::parseResourceType | ( | const std::string & | str | ) |
Definition at line 25 of file RenderPipelineReader.cpp.
void Cogs::Core::parseSlots | ( | const Value & | value, |
std::vector< RenderTaskSlot > & | slots | ||
) |
Definition at line 206 of file RenderPipelineReader.cpp.
void Cogs::Core::parseStringValue | ( | const StringView & | value, |
ParsedValue & | v | ||
) |
Definition at line 342 of file Parsing.cpp.
void Cogs::Core::parseTask | ( | const Value & | jsonTask, |
RenderTaskDefinition & | task, | ||
const std::string & | |||
) |
Definition at line 221 of file RenderPipelineReader.cpp.
bool Cogs::Core::parseTasks | ( | const Value & | jsonTasks, |
RenderPipelineDefinition & | definition, | ||
const std::string & | condition = "" |
||
) |
Definition at line 253 of file RenderPipelineReader.cpp.
Cogs::TextureFormat Cogs::Core::parseTextureFormat | ( | const StringView & | str, |
Cogs::TextureFormat | defaultFormat = TextureFormat::R8G8B8A8_UNORM_SRGB |
||
) |
Definition at line 480 of file Parsing.cpp.
uint32_t Cogs::Core::parseUInt | ( | const StringView & | token, |
uint32_t | defaultValue = 0 |
||
) |
Definition at line 515 of file Parsing.cpp.
void Cogs::Core::parseValue | ( | const StringView & | key, |
const Value & | value, | ||
ParsedValue & | v | ||
) |
Definition at line 69 of file RenderPipelineReader.cpp.
void Cogs::Core::parseValues | ( | bool * | values, |
const TokenStream & | tokens, | ||
size_t | expected | ||
) |
Definition at line 982 of file Parsing.cpp.
void Cogs::Core::parseValues | ( | double * | values, |
const TokenStream & | tokens, | ||
size_t | expected | ||
) |
Definition at line 967 of file Parsing.cpp.
void Cogs::Core::parseValues | ( | float * | values, |
const TokenStream & | tokens, | ||
size_t | expected | ||
) |
Definition at line 962 of file Parsing.cpp.
void Cogs::Core::parseValues | ( | int * | values, |
const TokenStream & | tokens, | ||
size_t | expected | ||
) |
Definition at line 972 of file Parsing.cpp.
void Cogs::Core::parseValues | ( | std::vector< std::pair< size_t, std::string > > & | expressions, |
bool * | values, | ||
const TokenStream & | tokens, | ||
size_t | expected | ||
) |
Definition at line 1008 of file Parsing.cpp.
void Cogs::Core::parseValues | ( | std::vector< std::pair< size_t, std::string > > & | expressions, |
double * | values, | ||
const TokenStream & | tokens, | ||
size_t | expected | ||
) |
Definition at line 993 of file Parsing.cpp.
void Cogs::Core::parseValues | ( | std::vector< std::pair< size_t, std::string > > & | expressions, |
float * | values, | ||
const TokenStream & | tokens, | ||
size_t | expected | ||
) |
Definition at line 988 of file Parsing.cpp.
void Cogs::Core::parseValues | ( | std::vector< std::pair< size_t, std::string > > & | expressions, |
int * | values, | ||
const TokenStream & | tokens, | ||
size_t | expected | ||
) |
Definition at line 998 of file Parsing.cpp.
void Cogs::Core::parseValues | ( | std::vector< std::pair< size_t, std::string > > & | expressions, |
T * | values, | ||
const TokenStream & | tokens, | ||
size_t | expected, | ||
Func | f | ||
) |
Definition at line 908 of file Parsing.cpp.
void Cogs::Core::parseValues | ( | std::vector< std::pair< size_t, std::string > > & | expressions, |
uint32_t * | values, | ||
const TokenStream & | tokens, | ||
size_t | expected | ||
) |
Definition at line 1003 of file Parsing.cpp.
void Cogs::Core::parseValues | ( | T * | values, |
const TokenStream & | tokens, | ||
size_t | expected, | ||
Func | f | ||
) |
Definition at line 894 of file Parsing.cpp.
void Cogs::Core::parseValues | ( | uint32_t * | values, |
const TokenStream & | tokens, | ||
size_t | expected | ||
) |
Definition at line 977 of file Parsing.cpp.
|
inline |
void Cogs::Core::permutationInspector | ( | class Context * | context, |
bool * | show | ||
) |
Definition at line 594 of file PipelineInspector.cpp.
void Cogs::Core::pic_parameter_set_nalu | ( | H264ParseData & | parse, |
const uint8_t * | pps, | ||
size_t | pps_size | ||
) |
Definition at line 1449 of file H264Parser.cpp.
void Cogs::Core::pic_parameter_set_nalu | ( | H265ParseData & | parse, |
const uint8_t * | pps, | ||
size_t | pps_size | ||
) |
Definition at line 643 of file H265Parser.cpp.
void Cogs::Core::pic_parameter_set_rbsp | ( | H265ParseData & | parse, |
uint8_t * | data, | ||
size_t | size | ||
) |
Definition at line 532 of file H265Parser.cpp.
size_t Cogs::Core::pipelineHash | ( | RenderTaskContext * | renderContext, |
const RenderPipeline & | pipeline | ||
) |
Definition at line 703 of file RenderPipelineFactory.cpp.
void Cogs::Core::pipelineInspector | ( | class Context * | context, |
bool * | show | ||
) |
Definition at line 540 of file PipelineInspector.cpp.
size_t Cogs::Core::populateObjectBuffer | ( | const DrawContext * | drawContext, |
const RenderItem * | items, | ||
size_t | o, | ||
size_t | n | ||
) |
Definition at line 392 of file RenderStateUpdater.cpp.
void Cogs::Core::processInFlightRequests | ( | Context * | context, |
AssetSystemData * | systemData | ||
) |
Definition at line 1655 of file AssetSystem.cpp.
size_t Cogs::Core::processPendingRequests | ( | Context * | context, |
AssetSystemData * | systemData, | ||
ModelManager * | modelManager, | ||
AssetSystemVector< AssetModelRequest * > & | pendingRequests, | ||
AssetSystemVector< AssetModelRequest * > & | inFlightRequests, | ||
const size_t | maxInFlight, | ||
const size_t | maxProcessed | ||
) |
Definition at line 1685 of file AssetSystem.cpp.
void Cogs::Core::profile_tier_level | ( | H265ProfileTierLevel & | tier, |
const uint8_t * | data, | ||
size_t & | bit, | ||
uint32_t | profilePresentFlag, | ||
uint32_t | maxNumSubLayersMinus1 | ||
) |
Definition at line 53 of file H265Parser.cpp.
void Cogs::Core::profileInspector | ( | class Context * | context, |
bool * | showProfiler | ||
) |
Definition at line 105 of file ProfileInspector.cpp.
glm::vec3 Cogs::Core::project | ( | const CameraData & | data, |
const glm::vec3 & | in | ||
) |
Definition at line 35 of file DepthAxisSystem.cpp.
void Cogs::Core::pullCameraMatrices | ( | Context * | context, |
AssetSystemData * | systemData | ||
) |
Definition at line 1748 of file AssetSystem.cpp.
|
inline |
|
inline |
|
inline |
Definition at line 33 of file ReaderCommon.h.
uint32_t Cogs::Core::readArray | ( | const Value & | value, |
vecType< S, T, P > & | result, | ||
ExpressionContext * | ev | ||
) |
Definition at line 48 of file ReaderCommon.h.
bool Cogs::Core::readAsset | ( | class Context * | context, |
StringView | fileName, | ||
AssetLoadFlags | flags = AssetLoadFlags::None , |
||
ComponentModel::Entity * | root = nullptr |
||
) |
Definition at line 170 of file AssetReader.cpp.
void Cogs::Core::readAssetDefinition | ( | ReaderContext * | , |
const Value & | jsonResource, | ||
ResourceDefinition & | assetDefinition | ||
) |
Definition at line 140 of file ResourceReader.cpp.
bool Cogs::Core::readAssetDefinitionFromFile | ( | class Context * | context, |
StringView | fileName, | ||
AssetDefinition & | assetDefinition, | ||
bool | compressed = false |
||
) |
Definition at line 276 of file AssetReader.cpp.
bool Cogs::Core::readAssetDefinitionFromFileContents | ( | class Context * | context, |
std::unique_ptr< FileContents > | contents, | ||
AssetDefinition & | assetDefinition, | ||
bool | compressed = false |
||
) |
Definition at line 283 of file AssetReader.cpp.
bool Cogs::Core::readAssetFromString | ( | class Context * | context, |
StringView | contents, | ||
AssetLoadFlags | flags = AssetLoadFlags::None , |
||
ComponentModel::Entity * | root = nullptr |
||
) |
Definition at line 195 of file AssetReader.cpp.
Batch Cogs::Core::readBatch | ( | Context * | context, |
const StringView & | path | ||
) |
void Cogs::Core::readEntityDefaults | ( | Context * | context, |
const Value & | value, | ||
std::vector< FieldValue > & | defaultValues, | ||
ExpressionContext * | ec | ||
) |
Definition at line 47 of file EntityReader.cpp.
void Cogs::Core::readEntityDefinition | ( | const StringView & | content, |
EntityStore * | store | ||
) |
Read an entity definition from the JSON string given in content, and add it to the store.
Definition at line 473 of file EntityReader.cpp.
void Cogs::Core::readEntityDefinition | ( | EntityStore * | store, |
const StringView & | name, | ||
const Value & | value | ||
) |
Definition at line 387 of file EntityReader.cpp.
bool Cogs::Core::readEntityDefinition | ( | EntityStore * | store, |
const StringView & | name, | ||
const Value & | value, | ||
struct EntityDefinition & | definition | ||
) |
Definition at line 400 of file EntityReader.cpp.
bool Cogs::Core::readExtensions | ( | Context * | , |
const Value & | jsonExtensions, | ||
AssetLoadFlags | |||
) |
Definition at line 54 of file AssetReader.cpp.
bool Cogs::Core::readFieldValue | ( | Context * | context, |
const Value & | jsonValue, | ||
const Reflection::Type & | type, | ||
const StringView & | fieldName, | ||
std::vector< FieldValue > & | fieldValues, | ||
ExpressionContext * | ec | ||
) |
Definition at line 61 of file EntityReader.cpp.
bool Cogs::Core::readFieldValues | ( | Context * | context, |
const Value & | jsonValue, | ||
const StringView & | componentName, | ||
std::vector< FieldValue > & | fieldValues, | ||
ExpressionContext * | ec | ||
) |
Definition at line 350 of file EntityReader.cpp.
bool Cogs::Core::readImports | ( | Context * | context, |
const Value & | jsonImports, | ||
AssetLoadFlags | flags, | ||
ComponentModel::Entity * | root | ||
) |
Definition at line 78 of file AssetReader.cpp.
void Cogs::Core::readMaterialInstanceDefinition | ( | ReaderContext * | rc, |
const Value & | value, | ||
ResourceDefinition & | resourceDefinition | ||
) |
Definition at line 288 of file ResourceReader.cpp.
void Cogs::Core::readMaterialInstanceField | ( | Context * | context, |
const Value & | value, | ||
FieldValue & | fieldValue, | ||
ExpressionContext * | ec | ||
) |
Definition at line 23 of file EntityReader.cpp.
bool Cogs::Core::readMaterialProperties | ( | Context * | context, |
const Value & | jsonValue, | ||
MaterialProperties & | materialProperties, | ||
bool | isShared | ||
) |
Definition at line 1382 of file MaterialReader.cpp.
bool Cogs::Core::readMaterialVariants | ( | Context * | context, |
const Value & | value, | ||
std::vector< ShaderVariantDefinition > & | variants, | ||
bool | isShared = false |
||
) |
Definition at line 1397 of file MaterialReader.cpp.
StringView Cogs::Core::readMesh | ( | Context * | context, |
ResourceDefinition & | definition, | ||
const Value & | jsonResource | ||
) |
Definition at line 32 of file ResourceReader.cpp.
void Cogs::Core::readModelDefinition | ( | ReaderContext * | , |
const Value & | jsonResource, | ||
ResourceDefinition & | definition | ||
) |
Definition at line 146 of file ResourceReader.cpp.
void Cogs::Core::readResource | ( | Context * | context, |
const StringView & | name, | ||
const Value & | jsonResource | ||
) |
Definition at line 366 of file ResourceReader.cpp.
void Cogs::Core::readResourceDefinition | ( | Context * | context, |
const StringView & | name, | ||
const Value & | jsonResource, | ||
ResourceDefinition & | definition | ||
) |
Definition at line 426 of file ResourceReader.cpp.
void Cogs::Core::readResourceDefinitions | ( | Context * | context, |
const Value & | jsonResources, | ||
int | flags, | ||
AssetDefinition & | asset | ||
) |
Definition at line 511 of file ResourceReader.cpp.
void Cogs::Core::readResources | ( | Context * | context, |
const Value & | jsonResources, | ||
int | flags = 0 |
||
) |
Definition at line 499 of file ResourceReader.cpp.
void Cogs::Core::readScene | ( | class Context * | context, |
const Value & | jsonScene, | ||
AssetLoadFlags | flags, | ||
ComponentModel::Entity * | root | ||
) |
Parse JSON description of Entities in Cogs Scene file and create Entities defined in scene.
jsonScene | JSON Array element containing Entity defs. |
flags | Not currently used. |
root | Optional parent Entity for scene. |
Definition at line 570 of file SceneReader.cpp.
References readSceneDefinition().
void Cogs::Core::readSceneDefinition | ( | class Context * | context, |
const Value & | jsonScene, | ||
AssetLoadFlags | flags, | ||
AssetDefinition & | asset | ||
) |
Parse JSON description of Entities in Cogs Scene. Store contents in asset param.
Definition at line 602 of file SceneReader.cpp.
Referenced by Cogs::Core::PasteEntityCommand::apply(), and readScene().
void Cogs::Core::readSceneEntityDefinition | ( | Context * | context, |
const Value & | jsonEntity, | ||
AssetDefinition & | asset, | ||
SceneDefinition & | sceneDef, | ||
uint32_t | entityId, | ||
struct ExpressionContext * | ev | ||
) |
Definition at line 276 of file SceneReader.cpp.
void Cogs::Core::readSize_t | ( | ExpressionValue< size_t > & | value, |
ExpressionContext * | ev, | ||
const std::string & | prefix, | ||
const ParsedValue & | parsedValue | ||
) |
Definition at line 225 of file Expressions.cpp.
void Cogs::Core::readTemplates | ( | Context * | context, |
const Value & | jsonTemplates, | ||
AssetLoadFlags | |||
) |
Definition at line 42 of file AssetReader.cpp.
void Cogs::Core::readTextureDefinition | ( | ReaderContext * | , |
const Value & | jsonResource, | ||
ResourceDefinition & | definition | ||
) |
Definition at line 152 of file ResourceReader.cpp.
T Cogs::Core::readValue | ( | const Value & | value, |
ExpressionContext * | ev | ||
) |
Definition at line 28 of file ReaderCommon.h.
T Cogs::Core::readValue | ( | const Value & | value, |
T | defaultValue, | ||
ExpressionContext * | ev | ||
) |
Definition at line 16 of file ReaderCommon.h.
void Cogs::Core::readVariables | ( | Variables & | variables, |
const Value & | jsonVariables, | ||
const std::string & | sectionHeader, | ||
bool | defaults = false |
||
) |
Definition at line 16 of file VariableReader.cpp.
void Cogs::Core::registerExtensionReader | ( | Context * | context, |
const StringView & | resourceType, | ||
const Reflection::Type & | handleType, | ||
ReaderExtension | extension | ||
) |
Definition at line 492 of file ResourceReader.cpp.
void Cogs::Core::registerResourceFlagTypes | ( | ) |
Definition at line 20 of file ResourceFlags.cpp.
void Cogs::Core::reindex | ( | const std::vector< int32_t > & | inputIndexes, |
Mesh * | mesh, | ||
bool | isLine | ||
) |
Definition at line 121 of file IndexConversion.cpp.
RenderResource * Cogs::Core::releaseGpuResource | ( | ResourceBase * | resource, |
Renderer * | renderer | ||
) |
Definition at line 330 of file RenderResources.cpp.
void Cogs::Core::releasePipeline | ( | RenderTaskContext * | renderContext, |
RenderPipeline & | pipeline | ||
) |
Definition at line 759 of file RenderPipelineFactory.cpp.
void Cogs::Core::remapIndices | ( | Context * | context, |
MeshRep & | rep, | ||
const std::vector< uint32_t > & | map | ||
) |
Definition at line 430 of file CommandHelpers.cpp.
void Cogs::Core::remapVertices | ( | Context * | context, |
MeshRep & | rep, | ||
const std::vector< uint32_t > & | unique | ||
) |
Definition at line 388 of file CommandHelpers.cpp.
void Cogs::Core::RemoveEntitiesWithAncestors | ( | Context * | context, |
const EntityIds & | entityIds, | ||
EntityIds & | output | ||
) |
Definition at line 480 of file EditorCommand.cpp.
void Cogs::Core::renderCallback | ( | RenderTaskContext * | renderingContext, |
DrawContext * | drawContext, | ||
const RenderItem * | item | ||
) |
Definition at line 18 of file SeaCurrentsRenderer.cpp.
void Cogs::Core::renderingStatsInspector | ( | class Context * | context, |
bool * | show | ||
) |
Definition at line 58 of file RenderingStatsInspector.cpp.
|
inline |
Replace common macroes for file name generation. I.e.: "A/$Filename" etc.
Definition at line 94 of file CommandParseHelpers.h.
References replaceToken().
Referenced by Cogs::Core::ExportCommand::apply().
|
inline |
Check string for the given token. Replace with option string is set else direct value.
Definition at line 59 of file CommandParseHelpers.h.
References getOption().
Referenced by replaceFileMacros().
void Cogs::Core::resourceStoreInspector | ( | class Context * | context, |
bool * | show | ||
) |
Definition at line 13 of file ResourceStoreInspector.cpp.
void Cogs::Core::runBatch | ( | class Context * | context, |
class Editor * | editor, | ||
const StringView & | path | ||
) |
void Cogs::Core::runCommand | ( | Batch & | , |
BatchCommand & | command, | ||
Editor * | editor, | ||
EntityId | id | ||
) |
void COGSCORE_EDITOR_API Cogs::Core::runFrames | ( | Context * | context, |
size_t | numFrames, | ||
bool | clear, | ||
bool | wait | ||
) |
void Cogs::Core::scriptConsole | ( | class Context * | context, |
bool * | show | ||
) |
Definition at line 140 of file ScriptInspector.cpp.
void Cogs::Core::scriptInspector | ( | class Context * | context, |
bool * | show | ||
) |
Definition at line 218 of file ScriptInspector.cpp.
void Cogs::Core::seq_parameter_set_nalu | ( | H264ParseData & | parse, |
const uint8_t * | sps, | ||
size_t | sps_size | ||
) |
Definition at line 1414 of file H264Parser.cpp.
void Cogs::Core::seq_parameter_set_nalu | ( | H265ParseData & | parse, |
const uint8_t * | sps, | ||
size_t | sps_size | ||
) |
Definition at line 597 of file H265Parser.cpp.
void Cogs::Core::seq_parameter_set_rbsp | ( | H265ParseData & | parse, |
const uint8_t * | data, | ||
size_t | size | ||
) |
Definition at line 320 of file H265Parser.cpp.
void Cogs::Core::setProcessTaskEffectParameter | ( | RenderTaskContext * | renderContext, |
std::list< std::unique_ptr< SubContext > > & | subContexts, | ||
ExpressionContext * | expressionContext, | ||
ProcessTask * | task, | ||
const ParsedValue & | parameter | ||
) |
Definition at line 92 of file RenderTaskFactory.cpp.
void Cogs::Core::shadowMapInspector | ( | class Context * | context, |
bool * | show | ||
) |
Definition at line 94 of file ShadowMapInspector.cpp.
bool Cogs::Core::showArray1D | ( | const std::string & | header, |
std::span< T > | array | ||
) |
Present const array or allow edit non-const array. Returns true if changed.
Definition at line 124 of file InspectorGuiHelper.h.
bool Cogs::Core::showArray2D | ( | const std::string & | header, |
std::span< T > | array | ||
) |
Definition at line 193 of file InspectorGuiHelper.h.
bool Cogs::Core::showArray3D | ( | const std::string & | header, |
std::span< glm::vec3 > | array | ||
) |
Definition at line 364 of file InspectorGuiHelper.cpp.
bool Cogs::Core::showArray3D | ( | const std::string & | header, |
std::span< T > | array | ||
) |
Definition at line 233 of file InspectorGuiHelper.h.
bool Cogs::Core::showArray4D | ( | const std::string & | header, |
std::span< T > | array | ||
) |
Definition at line 273 of file InspectorGuiHelper.h.
void Cogs::Core::showCollapsableEntityInspector | ( | class Context * | context, |
const ComponentModel::Entity * | entity, | ||
std::string_view | entityNamePattern, | ||
std::string_view | componentNamePattern, | ||
bool | showBorder = true |
||
) |
Definition at line 46 of file EntityInspector.cpp.
void Cogs::Core::showComponentInspector | ( | Context * | context, |
ComponentModel::Component * | component, | ||
std::string_view | entityNamePattern, | ||
std::string_view | componentNamePattern, | ||
bool | showBorder = true |
||
) |
Definition at line 107 of file EntityInspector.cpp.
void Cogs::Core::showEntities | ( | Context * | context, |
std::span< const EntityPtr > | entities, | ||
std::string_view | entityNamePattern, | ||
std::string_view | componentNamePattern | ||
) |
Definition at line 65 of file EntityInspector.cpp.
Entity * Cogs::Core::showEntity | ( | EditorState & | editor, |
Entity * | entity | ||
) |
Definition at line 1682 of file Editor.cpp.
void Cogs::Core::showEntityDefinition | ( | SceneDefinition & | scene, |
const SceneEntityDefinition & | definition | ||
) |
Definition at line 57 of file AssetInspector.cpp.
void Cogs::Core::showEntityInspector | ( | Context * | context, |
const ComponentModel::Entity * | entity, | ||
std::string_view | entityNamePattern, | ||
std::string_view | componentNamePattern, | ||
bool | showBorder = true |
||
) |
Definition at line 72 of file EntityInspector.cpp.
bool Cogs::Core::showEnum | ( | const std::string & | header, |
T & | currentItem | ||
) |
Show enumerator with edit option.
Definition at line 98 of file InspectorGuiHelper.h.
void Cogs::Core::showFieldInspector | ( | Context * | context, |
ComponentModel::Component * | component, | ||
FieldId | fieldId, | ||
std::string_view | entityNamePattern, | ||
std::string_view | componentNamePattern, | ||
bool | showBorder = true |
||
) |
Definition at line 156 of file EntityInspector.cpp.
void Cogs::Core::showMaterialInstance | ( | const Context * | context, |
struct MaterialInstance * | material, | ||
const std::string & | header | ||
) |
Definition at line 948 of file InspectorGuiHelper.cpp.
void Cogs::Core::showMaterialOptions | ( | const Context * | context, |
MaterialOptions * | options, | ||
const std::string & | header | ||
) |
Definition at line 766 of file InspectorGuiHelper.cpp.
void Cogs::Core::showMaterialProperties | ( | MaterialInstance * | material | ) |
Definition at line 842 of file InspectorGuiHelper.cpp.
void Cogs::Core::showMaterialVariants | ( | MaterialInstance * | material | ) |
Definition at line 793 of file InspectorGuiHelper.cpp.
bool Cogs::Core::showMatrix | ( | const std::string & | header, |
glm::mat4 & | m | ||
) |
Definition at line 339 of file InspectorGuiHelper.cpp.
Definition at line 388 of file InspectorGuiHelper.cpp.
Definition at line 1032 of file InspectorGuiHelper.cpp.
void Cogs::Core::showTexture | ( | const Context * | context, |
class Renderer * | renderer, | ||
Texture * | texture, | ||
bool | showTitle = false |
||
) |
Definition at line 184 of file InspectorGuiHelper.cpp.
Cogs::Core::SimplexResult Cogs::Core::simplexMaximize | ( | Context * | context, |
uintptr_t | scratch, | ||
double * | solutions, | ||
const int | variableCount, | ||
const double * | objectives, | ||
const int | objectiveCount, | ||
const double * | restrictions, | ||
const int | restrictionCount, | ||
const int | maxIterationCount, | ||
const bool | printSteps = false |
||
) |
Find the maximum of a linear programming problem using the simplex method.
Due to the simplex method, the code searches for a solution where the decision variables are non-negative, and thus, there are decisionVariables implicit restrictions.
solution | Pointer to an array of size variableCount times objectiveCount, where the optimal solution for each objective will be stored. |
variableCount | Number of decision variables. |
objective | Pointer to an array of size variableCount times , containing coefficients of objective function. |
objectiveCount | Number of objective functions to process, one solution per objective function. |
restrictions | Pointer to an array of size decisionVariables +1 times restrictionCount, with coefficients of restrictions. The restrictions are on the form c0*x + c1*y + c2*z <= c3, where c0..c3 are a row in the restricition array. |
restrictionCount | The number of restrictions specified, in addition to the implicit non-negativity restrictions. |
maxIterationCount | The maximum number of iterations to carry out before giving up. |
Definition at line 452 of file Simplex.cpp.
size_t Cogs::Core::simplexScratchSize | ( | const size_t | variableCount, |
const size_t | objectiveCount, | ||
const size_t | restrictionCount | ||
) |
Number of bytes of scratch array required by simplexMaximize.
Definition at line 440 of file Simplex.cpp.
bool Cogs::Core::spawnAsset | ( | Context * | context, |
AssetLodReference & | lodReference, | ||
EntityInstanceData & | entityInstance, | ||
EntityInstanceData * | parentInstance | ||
) |
Definition at line 1367 of file AssetSystem.cpp.
bool Cogs::Core::spawnEntity | ( | Context * | context, |
AssetLodReference & | lodReference, | ||
AssetInstanceData & | assetInstance, | ||
EntityInstanceData & | entityInstance, | ||
EntityInstanceData * | parentInstance, | ||
EntityParentMode | parentMode | ||
) |
Definition at line 1527 of file AssetSystem.cpp.
bool Cogs::Core::spawnLodGroup | ( | Context * | context, |
AssetLodReference & | lodReference, | ||
AssetInstanceData & | assetInstance, | ||
EntityInstanceData & | entityInstance, | ||
EntityInstanceData * | parentInstance, | ||
EntityParentMode | |||
) |
Definition at line 1293 of file AssetSystem.cpp.
bool Cogs::Core::spawnModel | ( | Context * | context, |
AssetInstanceData & | assetInstance, | ||
EntityInstanceData & | entityInstance, | ||
EntityInstanceData * | parentInstance, | ||
EntityParentMode | parentMode | ||
) |
Definition at line 1387 of file AssetSystem.cpp.
float Cogs::Core::sphereSectorGeometricAreaPredicate | ( | const glm::vec2 | screenSpaceRadii, |
const glm::vec2 | viewportSize, | ||
const float | areaPixelTolerance, | ||
const float | minSectors, | ||
const float | maxSectors | ||
) |
Definition at line 113 of file TessellationPredicates.cpp.
float Cogs::Core::sphereSectorGeometricDistancePredicate | ( | const glm::vec2 | screenSpaceRadii, |
const glm::vec2 | viewportSize, | ||
const float | distancePixelTolerance, | ||
const float | minSectors, | ||
const float | maxSectors | ||
) |
Definition at line 62 of file TessellationPredicates.cpp.
Cogs::Core::TokenStream Cogs::Core::split | ( | const StringView & | str, |
const StringView & | splits | ||
) |
Definition at line 321 of file Parsing.cpp.
void Cogs::Core::split | ( | const StringView & | str, |
const StringView & | splits, | ||
const int | grouper, | ||
TokenStream & | tokens | ||
) |
Definition at line 289 of file Parsing.cpp.
void Cogs::Core::split | ( | const StringView & | str, |
const StringView & | splits, | ||
TokenStream & | tokens | ||
) |
Definition at line 265 of file Parsing.cpp.
void Cogs::Core::taskManagerInspector | ( | Context * | context, |
bool * | show | ||
) |
Definition at line 16 of file TaskManagerInspector.cpp.
void Cogs::Core::tesselate | ( | const glm::vec3 * | contours, |
const size_t | count, | ||
const size_t | stride, | ||
std::vector< uint32_t > & | triangleIndexes, | ||
uint32_t | base = 0 |
||
) |
Definition at line 24 of file IndexConversion.cpp.
std::vector< int32_t > Cogs::Core::tesselatePolygons | ( | std::vector< int32_t > & | inputIndexes, |
Mesh * | mesh | ||
) |
Definition at line 66 of file IndexConversion.cpp.
void Cogs::Core::textureInspector | ( | class Context * | context, |
bool * | show | ||
) |
Definition at line 101 of file TextureInspector.cpp.
|
inline |
Definition at line 66 of file PhysicsManager.h.
|
inline |
Definition at line 61 of file PhysicsManager.h.
ImVec2 Cogs::Core::toImVec2 | ( | int | x, |
int | y | ||
) |
Definition at line 82 of file GuiContainer.cpp.
ImVec4 Cogs::Core::toImVec4 | ( | const litehtml::web_color & | color | ) |
Definition at line 77 of file GuiContainer.cpp.
Cogs::Core::TokenStream Cogs::Core::tokenize | ( | const StringView & | valueStr | ) |
Definition at line 328 of file Parsing.cpp.
void Cogs::Core::tokenize | ( | const StringView & | valueStr, |
TokenStream & | tokens | ||
) |
Definition at line 337 of file Parsing.cpp.
|
inline |
Definition at line 33 of file JsonParser.h.
|
inline |
Definition at line 44 of file JsonParser.h.
|
inline |
Definition at line 38 of file JsonParser.h.
void Cogs::Core::transformVertex3ToVertex4 | ( | Context * | context, |
uint8_t * | dst, | ||
const size_t | dst_stride, | ||
const size_t | dst_bytes, | ||
const glm::mat4 & | matrix, | ||
const uint8_t * | src, | ||
const size_t | src_stride, | ||
const size_t | src_bytes, | ||
const size_t | src_count | ||
) |
Definition at line 54 of file TransformVertices_ref.cpp.
void Cogs::Core::transformVertex3ToVertex4AVX | ( | uint8_t * | dst, |
const size_t | dst_stride, | ||
const | size_t, | ||
const glm::mat4 & | matrix, | ||
const uint8_t * | src, | ||
const size_t | src_stride, | ||
const | size_t, | ||
const size_t | src_count | ||
) |
Definition at line 14 of file TransformVertices_avx.cpp.
void Cogs::Core::transformVertex3ToVertex4FastPathAVX | ( | uint8_t * | dst, |
const size_t | dst_stride, | ||
const | size_t, | ||
const glm::mat4 & | matrix, | ||
const uint8_t * | src, | ||
const size_t | src_stride, | ||
const | size_t, | ||
const size_t | src_count | ||
) |
Definition at line 103 of file TransformVertices_avx.cpp.
void Cogs::Core::transformVertex3ToVertex4FastPathSSE1 | ( | uint8_t * | dst, |
const size_t | dst_stride, | ||
const size_t | dst_bytes, | ||
const glm::mat4 & | matrix, | ||
const uint8_t * | src, | ||
const size_t | src_stride, | ||
const size_t | src_bytes, | ||
const size_t | src_count | ||
) |
Definition at line 69 of file TransformVertices_sse.cpp.
void Cogs::Core::transformVertex3ToVertex4SSE1 | ( | uint8_t * | dst, |
const size_t | dst_stride, | ||
const size_t | dst_bytes, | ||
const glm::mat4 & | matrix, | ||
const uint8_t * | src, | ||
const size_t | src_stride, | ||
const size_t | src_bytes, | ||
const size_t | src_count | ||
) |
Definition at line 8 of file TransformVertices_sse.cpp.
|
inline |
Definition at line 24 of file TransformVertices.h.
|
inline |
Definition at line 40 of file TransformVertices.h.
Definition at line 91 of file MergeCommand.cpp.
void Cogs::Core::traverseMerge | ( | Context * | context, |
Entity * | entity, | ||
MergeMeshState & | state | ||
) |
Definition at line 257 of file MergeCommand.cpp.
void Cogs::Core::traverseScale | ( | Context * | context, |
Entity * | entity, | ||
MergeMeshState & | state | ||
) |
Definition at line 289 of file MergeCommand.cpp.
void Cogs::Core::unpackMeshItems | ( | Context * | context, |
std::vector< MeshHandle > & | originalMeshes, | ||
MeshReps & | meshes, | ||
MeshItems & | items, | ||
UnpackOptions | options = UnpackOptions() |
||
) |
Definition at line 447 of file CommandHelpers.cpp.
void Cogs::Core::updateAssetDesiredLevels | ( | Context * | context, |
AssetInstanceData & | assetInstance, | ||
uint32_t | lodDepth, | ||
uint32_t | maxIterations | ||
) |
Definition at line 1013 of file AssetSystem.cpp.
void Cogs::Core::updateAssetInstanceRenderProperties | ( | Context * | context, |
AssetInstanceData & | assetInstance | ||
) |
Definition at line 1862 of file AssetSystem.cpp.
void Cogs::Core::updateData | ( | ZipData & | data, |
const ZipComponent & | component | ||
) |
Definition at line 41 of file ZipSystem.cpp.
void Cogs::Core::updateEngineBuffers | ( | RenderTaskContext * | context, |
const RenderTarget * | renderTarget, | ||
const CameraData * | viewportData, | ||
const std::array< glm::vec4, 6 > * | clipEquations | ||
) |
Definition at line 350 of file EngineBuffers.cpp.
void Cogs::Core::updateEntity | ( | Context * | context, |
AssetLodReference & | lodReference, | ||
AssetInstanceData & | assetInstance, | ||
EntityInstanceData & | entityInstance, | ||
EntityInstanceData * | parentInstance | ||
) |
Definition at line 1582 of file AssetSystem.cpp.
void Cogs::Core::updateEntityDesiredLevels | ( | Context * | context, |
AssetInstanceData & | instance, | ||
AssetLodReference & | lodReference, | ||
EntityInstanceData & | entityInstance, | ||
uint32_t | lodDepth, | ||
const float | tolerance | ||
) |
Definition at line 939 of file AssetSystem.cpp.
void Cogs::Core::updateEntityInstanceRenderProperties | ( | Context * | context, |
AssetInstanceData & | assetInstance, | ||
EntityInstanceData & | entityInstance | ||
) |
Definition at line 1818 of file AssetSystem.cpp.
void Cogs::Core::updateEnvironmentBindings | ( | const DrawContext * | drawContext, |
const EffectBinding * | bindings | ||
) |
Definition at line 77 of file RenderStateUpdater.cpp.
void Cogs::Core::updateIndexes | ( | const ZipData & | data, |
const ZipComponent & | component, | ||
Mesh * | mesh | ||
) |
Definition at line 186 of file ZipSystem.cpp.
void Cogs::Core::updateInstancedModelChildEntityRenderProperties | ( | Context * | context, |
AssetInstanceData & | assetInstance, | ||
Entity & | entity | ||
) |
Definition at line 1799 of file AssetSystem.cpp.
void Cogs::Core::updateLodGroupDesiredLevel | ( | AssetInstanceData & | instance, |
AssetLodReference & | lodReference, | ||
EntityInstanceData & | lodInstance, | ||
uint32_t | lodDepth, | ||
const float | tolerance | ||
) |
Definition at line 736 of file AssetSystem.cpp.
void Cogs::Core::updateMassProperties | ( | RigidBodyData & | data, |
float | mass, | ||
const glm::vec3 & | scale | ||
) |
Definition at line 33 of file RigidBodySystem.cpp.
void Cogs::Core::updateMasterMaterial | ( | Context * | , |
ModelData & | modelData, | ||
MaterialInstanceHandle | masterMaterial | ||
) |
Definition at line 59 of file ModelSystem.cpp.
void Cogs::Core::updateMaterialBindings | ( | const DrawContext * | drawContext, |
const RenderMaterialInstance * | renderMaterialInstance, | ||
const EffectBinding * | bindings, | ||
bool | perInstance | ||
) |
Definition at line 301 of file RenderStateUpdater.cpp.
void Cogs::Core::updateMaterialInstance | ( | Context * | context, |
MaterialInstance * | materialInstance, | ||
const MaterialInstanceDefinition & | materialInstanceValue | ||
) |
Apply material instance values.
Definition at line 38 of file EntityDefinition.cpp.
References Cogs::Core::MaterialInstance::material, Cogs::Core::MaterialInstance::setBoolProperty(), Cogs::Core::MaterialInstance::setFloatProperty(), Cogs::Core::MaterialInstance::setOption(), Cogs::Core::MaterialInstance::setTextureProperty(), Cogs::Core::MaterialInstance::setVec2Property(), Cogs::Core::MaterialInstance::setVec3Property(), and Cogs::Core::MaterialInstance::setVec4Property().
void Cogs::Core::updatePositions | ( | const ZipData & | data, |
const ZipComponent & | component, | ||
Mesh * | mesh, | ||
bool | useGpu | ||
) |
Definition at line 93 of file ZipSystem.cpp.
void Cogs::Core::updateRenderPropertiesRecurse | ( | const AssetInstanceData & | instanceData, |
Entity * | entity | ||
) |
Definition at line 1782 of file AssetSystem.cpp.
void Cogs::Core::updateSceneBindings | ( | const DrawContext * | drawContext, |
const CameraData * | cameraData, | ||
const EffectBinding * | bindings | ||
) |
Definition at line 37 of file RenderStateUpdater.cpp.
void Cogs::Core::updateSceneBindings | ( | const RenderTaskContext * | taskContext, |
const EffectBinding * | bindings | ||
) |
Definition at line 44 of file RenderStateUpdater.cpp.
void Cogs::Core::updateSkeletonPose | ( | Skeleton & | skeleton | ) |
Definition at line 33 of file AnimationSystem.cpp.
void Cogs::Core::updateTerrainContext | ( | TerrainData & | terrainData, |
const RenderTaskContext * | renderingContext, | ||
const RenderTarget * | renderTarget, | ||
const CameraData & | cameraData | ||
) |
Definition at line 62 of file TerrainRenderer.cpp.
void Cogs::Core::updateTexCoords | ( | const ZipData & | data, |
const ZipComponent & | , | ||
Mesh * | mesh | ||
) |
Definition at line 234 of file ZipSystem.cpp.
void Cogs::Core::updateViewportBuffer | ( | RenderTaskContext * | context, |
BufferHandle & | sceneBufferHandle, | ||
BufferHandle & | viewBufferHandle, | ||
const RenderTarget * | renderTarget, | ||
const CameraData * | viewportData, | ||
const std::array< glm::vec4, 6 > * | clipEquations | ||
) |
Definition at line 71 of file EngineBuffers.cpp.
void Cogs::Core::variableInspector | ( | class Context * | context, |
bool * | show | ||
) |
Definition at line 34 of file VariableInspector.cpp.
void Cogs::Core::video_parameter_set_nalu | ( | H265ParseData & | parse, |
const uint8_t * | vps, | ||
size_t | vps_size | ||
) |
Definition at line 551 of file H265Parser.cpp.
void Cogs::Core::video_parameter_set_rbsp | ( | H265ParseData & | parse, |
const uint8_t * | data, | ||
size_t | size | ||
) |
Definition at line 246 of file H265Parser.cpp.
void Cogs::Core::write_b | ( | uint32_t | val, |
uint8_t * | data, | ||
size_t & | bit | ||
) |
Definition at line 64 of file MPEG_TS_encode.cpp.
void Cogs::Core::write_u | ( | uint32_t | val, |
uint8_t * | data, | ||
size_t & | bit, | ||
size_t | n | ||
) |
Definition at line 73 of file MPEG_TS_encode.cpp.
bool Cogs::Core::writeAsset | ( | class Context * | context, |
const char * | path, | ||
AssetHandle | asset, | ||
AssetWriteFlags | writeFlags | ||
) |
Definition at line 849 of file AssetWriter.cpp.
bool Cogs::Core::writeAsset | ( | class Context * | context, |
StringView | fileName, | ||
AssetWriteFlags | flags = AssetWriteFlags::None , |
||
ComponentModel::Entity * | root = nullptr |
||
) |
Definition at line 578 of file AssetWriter.cpp.
void Cogs::Core::writeBool | ( | Value & | object, |
const StringView & | key, | ||
bool | value, | ||
bool | defaultValue, | ||
AllocatorType & | a | ||
) |
Definition at line 144 of file EntityWriter.cpp.
bool Cogs::Core::writeCogsBin3Models | ( | Context * | context, |
uint32_t & | numVertes, | ||
uint32_t & | numIndexes, | ||
const StringView & | fileName, | ||
ComponentModel::Entity ** | entity, | ||
size_t | N, | ||
WriteModelFlags | flags = WriteModelFlags::COMPRESS_ZSTD | WriteModelFlags::COMPRESS_MAX |
||
) |
Definition at line 1338 of file CogsBin3Writer.cpp.
void Cogs::Core::writeDouble | ( | Value & | object, |
const StringView & | key, | ||
const double | value, | ||
const double | defaultValue, | ||
AllocatorType & | a | ||
) |
Definition at line 117 of file EntityWriter.cpp.
rapidjson::Document Cogs::Core::writeEntity | ( | Context * | context, |
ComponentModel::Entity * | entity, | ||
const AssetWriteFlags | flags = AssetWriteFlags::None |
||
) |
Serialize entity to new JSON document.
Definition at line 525 of file EntityWriter.cpp.
References writeEntity().
void Cogs::Core::writeEntity | ( | Context * | context, |
ComponentModel::Entity * | entity, | ||
rapidjson::Value & | object, | ||
rapidjson::Document & | d, | ||
SerializationContext * | sc = nullptr , |
||
const AssetWriteFlags | flags = AssetWriteFlags::None |
||
) |
Serialize entity adding entity to the given parent 'object'.
Definition at line 221 of file EntityWriter.cpp.
References Cogs::Core::TransformComponent::coordinates, Cogs::Reflection::TypeDatabase::createInstance(), Cogs::ComponentModel::Entity::getComponent(), Cogs::ComponentModel::Entity::getComponents(), Cogs::Core::EntityStore::getEntityDefinition(), Cogs::Reflection::Field::getFlags(), Cogs::Reflection::Field::getName(), Cogs::Reflection::Name::getName(), Cogs::Reflection::Type::getName(), Cogs::ComponentModel::Entity::getName(), Cogs::Reflection::Field::getPtr(), Cogs::Reflection::TypeDatabase::getType(), Cogs::Reflection::Field::getTypeId(), Cogs::ComponentModel::Entity::getUserData(), Cogs::Core::EntityStore::hasEntityOwnership(), Cogs::Core::EntityDefinition::name, Cogs::Reflection::NoSerialize, Cogs::Core::TransformComponent::position, Cogs::Core::TransformComponent::rotation, Cogs::Core::TransformComponent::scale, Cogs::Core::Context::store, Cogs::Core::TransformComponent::transformFlags, and writeEntity().
Referenced by Cogs::Core::DestroyCommand::apply(), and writeEntity().
void Cogs::Core::writeInteger | ( | Value & | object, |
const StringView & | key, | ||
T | value, | ||
T | defaultValue, | ||
AllocatorType & | a | ||
) |
Definition at line 135 of file EntityWriter.cpp.
void Cogs::Core::writeMat | ( | Value & | object, |
const StringView & | key, | ||
const glm::mat4 & | value, | ||
const glm::mat4 & | defaultValue, | ||
AllocatorType & | a | ||
) |
Definition at line 102 of file EntityWriter.cpp.
void Cogs::Core::writeMeshStats | ( | ModelStats & | stats, |
Mesh * | mesh | ||
) |
Definition at line 48 of file DumpStatsCommand.cpp.
bool Cogs::Core::writeModel | ( | Context * | context, |
const StringView & | fileName, | ||
ComponentModel::Entity * | entity, | ||
WriteModelFlags | flags = WriteModelFlags::COMPRESS_ZSTD | WriteModelFlags::COMPRESS_MAX |
||
) |
Definition at line 1750 of file ModelWriter.cpp.
bool Cogs::Core::writeModel | ( | Context * | context, |
uint32_t & | numVertes, | ||
uint32_t & | numIndexes, | ||
const StringView & | fileName, | ||
ComponentModel::Entity * | entity, | ||
WriteModelFlags | flags = WriteModelFlags::COMPRESS_ZSTD | WriteModelFlags::COMPRESS_MAX |
||
) |
Definition at line 1757 of file ModelWriter.cpp.
bool Cogs::Core::writeModels | ( | Context * | context, |
uint32_t & | numVertes, | ||
uint32_t & | numIndexes, | ||
const StringView & | fileName, | ||
ComponentModel::Entity ** | entity, | ||
size_t | N, | ||
WriteModelFlags | flags = WriteModelFlags::COMPRESS_ZSTD | WriteModelFlags::COMPRESS_MAX |
||
) |
Definition at line 1708 of file ModelWriter.cpp.
void Cogs::Core::writeStats | ( | Context * | context, |
ModelStats & | model, | ||
uint32_t | , | ||
ComponentModel::Entity * | entity | ||
) |
Definition at line 83 of file DumpStatsCommand.cpp.
void Cogs::Core::writeStream | ( | ModelStats & | stats, |
const DataStream * | stream | ||
) |
Definition at line 37 of file DumpStatsCommand.cpp.
void Cogs::Core::writeString | ( | Value & | object, |
const StringView & | key, | ||
StringView | value, | ||
StringView | defaultValue, | ||
AllocatorType & | a | ||
) |
Definition at line 156 of file EntityWriter.cpp.
void Cogs::Core::writeVec | ( | Value & | object, |
const StringView & | key, | ||
T | value, | ||
T | defaultValue, | ||
AllocatorType & | a | ||
) |
Definition at line 87 of file EntityWriter.cpp.
void Cogs::Core::writeVectorDouble | ( | Value & | object, |
const StringView & | key, | ||
const std::vector< T > & | values, | ||
const std::vector< T > | defaultValue, | ||
AllocatorType & | a | ||
) |
Definition at line 71 of file EntityWriter.cpp.
void Cogs::Core::writeVectorInt | ( | Value & | object, |
const StringView & | key, | ||
const std::vector< T > & | values, | ||
const std::vector< T > | defaultValue, | ||
AllocatorType & | a | ||
) |
Definition at line 55 of file EntityWriter.cpp.
void Cogs::Core::writeVectorVec | ( | Value & | object, |
const StringView & | key, | ||
const std::vector< T > & | values, | ||
const std::vector< T > | defaultValue, | ||
AllocatorType & | a | ||
) |
Definition at line 37 of file EntityWriter.cpp.
std::unordered_map<std::string, TaskCreator> Cogs::Core::creators |
Definition at line 44 of file RenderTaskFactory.cpp.
const SpriteMaterialKey Cogs::Core::DefaultSpriteMaterial = 0 |
Definition at line 52 of file SpriteRenderSystem.h.
std::unordered_map<std::string, TaskDestroyer> Cogs::Core::destroyers |
Definition at line 45 of file RenderTaskFactory.cpp.
|
extern |
Definition at line 40 of file InspectorGuiHelper.cpp.
|
extern |
Definition at line 39 of file InspectorGuiHelper.cpp.
const IconInfo Cogs::Core::icons[] |
Definition at line 554 of file Editor.cpp.
|
constexpr |
Definition at line 17 of file InputDeviceState.h.
|
constexpr |
Definition at line 19 of file InputDeviceState.h.
|
constexpr |
Definition at line 15 of file InputDeviceState.h.
|
constexpr |
Definition at line 14 of file InputDeviceState.h.
const size_t Cogs::Core::kMaxBones = 256 |
Definition at line 75 of file Animation.h.
|
constexpr |
Definition at line 5 of file Constants.h.
|
constexpr |
Definition at line 23 of file DynamicComponentSystem.h.
|
constexpr |
Definition at line 22 of file DynamicComponentSystem.h.
|
constexpr |
Definition at line 6 of file Constants.h.
const size_t Cogs::Core::kMinBatchSize = 256 / sizeof(SpriteVertex) |
Definition at line 87 of file SpriteRenderSystem.h.
|
constexpr |
Definition at line 18 of file InputDeviceState.h.
const glm::mat4 Cogs::Core::ModelPartIdentity = glm::mat4(1.0f) |
const SpriteBatchIndex Cogs::Core::NoBatchIndex = static_cast<SpriteBatchIndex>(-1) |
Definition at line 22 of file SpriteRenderSystem.h.
|
constexpr |
Definition at line 27 of file RenderSystem.h.
|
constexpr |
Definition at line 20 of file DynamicComponentSystem.h.
|
constexpr |
Definition at line 11 of file RenderComponent.h.
const int Cogs::Core::NoParent = -1 |
Definition at line 32 of file AdaptivePlanarGridSystem.h.
|
constexpr |
Definition at line 153 of file AssetDefinition.h.
const SpriteIndex Cogs::Core::NoSpriteIndex = static_cast<SpriteIndex>(-1) |
Definition at line 25 of file SpriteRenderSystem.h.
const SpriteMaterialKey Cogs::Core::NoSpriteMaterial = static_cast<SpriteMaterialKey>(-1) |
Definition at line 51 of file SpriteRenderSystem.h.
|
extern |
Definition at line 61 of file Parsing.cpp.
|
extern |
Definition at line 36 of file Parsing.cpp.
const Cogs::StringView Cogs::Core::pointSizeGlobalMaxScaleName = "potree.pointSize.globalMaxScale" |
Definition at line 26 of file PotreeSystem.cpp.
const Cogs::StringView Cogs::Core::pointSizeGlobalMinScaleName = "potree.pointSize.globalMinScale" |
Definition at line 25 of file PotreeSystem.cpp.
const Cogs::StringView Cogs::Core::pointSizeGlobalScaleName = "potree.pointSize.globalScale" |
Definition at line 27 of file PotreeSystem.cpp.
|
extern |
Callback for Render updates - not really called.
Definition at line 136 of file ImguiRenderer.cpp.
const Cogs::StringView Cogs::Core::spacingGlobalScaleName = "potree.spacing.globalScale" |
Definition at line 24 of file PotreeSystem.cpp.