VEX Engine
Retro looking game engine made in vulkan mostly because i wanted to understand it better.
Loading...
Searching...
No Matches
BillboardComponent.hpp
Go to the documentation of this file.
1
6
7
#pragma once
8
#include "components/AssetTypes.hpp"
9
#include "components/ColorTypes.hpp"
10
11
namespace
vex
{
13
struct
BillboardComponent
{
14
vex::texture_asset_path
texturePath
;
15
glm::vec2
size
= glm::vec2(1.0f, 1.0f);
16
vex::rgba
color
=
vex::rgba
(1.0f, 1.0f, 1.0f, 1.0f);
17
bool
isTransparent
=
false
;
18
bool
isUnlit
=
false
;
19
};
20
}
// namespace vex
21
vex
Definition
AssetTypes.hpp:10
vex::BillboardComponent
A component for rendering a 2D quad that always faces the camera.
Definition
BillboardComponent.hpp:13
vex::BillboardComponent::isTransparent
bool isTransparent
Indicates if the billboard is rendered in the transparent pass.
Definition
BillboardComponent.hpp:17
vex::BillboardComponent::isUnlit
bool isUnlit
Indicates if the billboard should ignore scene lighting.
Definition
BillboardComponent.hpp:18
vex::BillboardComponent::color
vex::rgba color
Tint color applied to the billboard.
Definition
BillboardComponent.hpp:16
vex::BillboardComponent::texturePath
vex::texture_asset_path texturePath
Path to the texture mapped onto the billboard.
Definition
BillboardComponent.hpp:14
vex::BillboardComponent::size
glm::vec2 size
World-space size of the billboard quad.
Definition
BillboardComponent.hpp:15
vex::rgba
Represents an RGBA color value. Used mainly for fancy rendering in editor.
Definition
ColorTypes.hpp:15
vex::texture_asset_path
Specific wrapper for Textures.
Definition
AssetTypes.hpp:46
Core
include
components
GameComponents
BillboardComponent.hpp
Generated by
1.16.1