Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
Public Member Functions | Public Attributes | List of all members
cqsp::client::systems::StarSystemCamera Struct Reference

#include <starsystemcamera.h>

Public Member Functions

 StarSystemCamera ()
 
void CalculateCameraMatrix (int window_width, int window_height)
 

Public Attributes

glm::vec3 cam_pos
 
const glm::vec3 cam_up = glm::vec3(0.0f, 0.0f, 1.0f)
 
glm::mat4 camera_matrix
 
glm::mat4 projection
 
glm::vec4 viewport
 
glm::vec3 view_center
 
double scroll
 
float view_x = 0
 
float view_y = 0
 

Detailed Description

Holds camera state.

Constructor & Destructor Documentation

◆ StarSystemCamera()

cqsp::client::systems::StarSystemCamera::StarSystemCamera ( )

Member Function Documentation

◆ CalculateCameraMatrix()

void cqsp::client::systems::StarSystemCamera::CalculateCameraMatrix ( int  window_width,
int  window_height 
)

Member Data Documentation

◆ cam_pos

glm::vec3 cqsp::client::systems::StarSystemCamera::cam_pos

◆ cam_up

const glm::vec3 cqsp::client::systems::StarSystemCamera::cam_up = glm::vec3(0.0f, 0.0f, 1.0f)

◆ camera_matrix

glm::mat4 cqsp::client::systems::StarSystemCamera::camera_matrix

◆ projection

glm::mat4 cqsp::client::systems::StarSystemCamera::projection

◆ scroll

double cqsp::client::systems::StarSystemCamera::scroll

◆ view_center

glm::vec3 cqsp::client::systems::StarSystemCamera::view_center

◆ view_x

float cqsp::client::systems::StarSystemCamera::view_x = 0

◆ view_y

float cqsp::client::systems::StarSystemCamera::view_y = 0

◆ viewport

glm::vec4 cqsp::client::systems::StarSystemCamera::viewport

The documentation for this struct was generated from the following files: