Cogs.Core
OGC3DTilesExtension.h
1#pragma once
2
3#include "ExtensionRegistry.h"
4#include "Bridge/Bridge.h"
5
6namespace Cogs::Core
7{
9 {
10 OGC3DTilesExtension() { ExtensionRegistry::add(this, COGS_CORE_VERSION_STRING); }
11
12 bool initializeStatic() override;
13 bool initialize(Context* context) override;
14
15 virtual const char* getExtensionKey() const override { return "OGC3DTiles"; }
16
17 } OGC3DTilesExtensionInstance;
18};
19
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition: Context.h:83
static void add(Extension *extension, StringView version)
Adds the given extension to the registry, ensuring the initialization methods are called at appropria...
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
Defines an extension to Cogs.Core and provides methods to override in order to initialize extension c...
virtual const char * getExtensionKey() const override
Get the extensions unique key, used to check for extension presence and retrieve extension specific d...
bool initialize(Context *context) override
Initialize extension for the given context.
bool initializeStatic() override
Initialize extension statically.