Cogs.Core
TessellationPredicates.h
1#pragma once
2#include "Base.h"
3
4#define _USE_MATH_DEFINES
5#include <glm/glm.hpp>
6
7namespace Cogs::Core
8{
10 COGSCORE_DLL_API glm::vec2 localSphereRadiusInScreenSpace(const glm::mat4& localToClip,
11 const glm::mat4& clipToLocal,
12 const glm::vec4& clipPosition,
13 const float localRadius);
14
15 COGSCORE_DLL_API float sphereSectorGeometricDistancePredicate(const glm::vec2 screenSpaceRadii,
16 const glm::vec2 viewportSize,
17 const float distancePixelTolerance,
18 const float minSectors,
19 const float maxSectors);
20
21 COGSCORE_DLL_API float sphereSectorGeometricAreaPredicate(const glm::vec2 screenSpaceRadii,
22 const glm::vec2 viewportSize,
23 const float areaPixelTolerance,
24 const float minSectors,
25 const float maxSectors);
26
27}
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
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...