Copperfield Engine 0.1
C++ Game Engine
Loading...
Searching...
No Matches
default_components.hpp File Reference

Defines all the components created by the engine by default. More...

Go to the source code of this file.

Classes

struct  AudioCmp
 Component used for audio reproduction. More...
 
struct  LightCmp
 Component used to simulate different types of lights. More...
 
struct  CameraCmp
 Component used to render the scene. There must be one and only one of this component on the scene. More...
 
struct  RenderCmp
 Component used to render an object. More...
 
struct  TransformCmp
 Component used to give a position, rotation, and scale to an entity. More...
 
struct  BoxCmp
 Component used to detect collisions. More...
 

Enumerations

enum class  CameraProjection { kPerspective , kOrtho }
 Camera projection modes. More...
 
enum class  LightType { kPoint , kDirectional , kSpot }
 Kinds of lights that can be casted. More...
 

Detailed Description

Defines all the components created by the engine by default.

Enumeration Type Documentation

◆ CameraProjection

enum class CameraProjection
strong

Camera projection modes.

Enumerator
kPerspective 

Renders regular 3D using depth.

kOrtho 

Renders a 3D scene as 2D without depth.

◆ LightType

enum class LightType
strong

Kinds of lights that can be casted.

Enumerator
kPoint 

Emits light in every direction and has attenuation over distance.

kDirectional 

The whole scene will receive light from the specified direction.

kSpot 

Emits light in a cone.