Cogs.Core
Extensions
AxisCube
Source
Systems
AnnotationAxisSystem.h
1
#pragma once
2
3
#include "Systems/ComponentSystem.h"
4
5
#include "../Components/AnnotationAxisComponent.h"
6
7
#include "Resources/Resources.h"
8
9
namespace
Cogs
10
{
11
namespace
Core
12
{
13
class
Context;
14
15
class
AnnotationAxisSystem
:
public
ComponentSystem
<AnnotationAxisComponent>
16
{
17
public
:
18
AnnotationAxisSystem
(
Memory::Allocator
* allocator,
SizeType
capacity) :
ComponentSystem
(allocator, capacity) {}
19
~AnnotationAxisSystem
() {}
20
21
void
update
(
Context
*
context
);
22
23
void
addAnnotations(
const
int
level,
24
std::vector<int> & indexes,
25
const
glm::mat4 & projectionMatrix,
26
const
glm::vec2 & viewportSize,
27
const
float
gap,
28
const
glm::vec3 * positions,
int
startIndex,
int
endIndex);
29
30
float
getScreenSpaceDistance(
const
glm::vec3 & p1,
const
glm::vec3 & p2,
const
glm::vec2 & viewportSize)
const
;
31
};
32
}
33
}
Cogs::Core::AnnotationAxisSystem
Definition:
AnnotationAxisSystem.h:16
Cogs::Core::ComponentSystemBase::context
Context * context
Pointer to the Context instance the system lives in.
Definition:
ComponentSystem.h:136
Cogs::Core::ComponentSystemBase::update
void update()
Updates the system state to that of the current frame.
Definition:
ComponentSystem.h:65
Cogs::Core::ComponentSystem
Typed component system managing a pool of components with the given ComponentType.
Definition:
ComponentSystem.h:144
Cogs::Core::Context
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition:
Context.h:83
Cogs::Memory::Allocator
Base allocator implementation.
Definition:
Allocator.h:30
Cogs
Contains all Cogs related functionality.
Definition:
FieldSetter.h:23
Cogs::SizeType
ComponentIndex SizeType
Type used to track the size of pools.
Definition:
Component.h:19
Generated by
1.9.6