R-Type
Distributed multiplayer game engine in C++
Loading...
Searching...
No Matches
EntityRenderer::BackgroundConfig Struct Reference

Configuration for scrolling parallax backgrounds. More...

#include <EntityRenderer.hpp>

Collaboration diagram for EntityRenderer::BackgroundConfig:
Collaboration graph

Public Attributes

std::string textureName
 Texture name (loaded texture)
 
std::string texturePath
 Asset path for texture loading.
 
float scrollSpeed
 Scroll speed in pixels/second.
 
float scrollOffset
 Current scroll offset (updates each frame)
 
int textureWidth
 Texture width for tiling.
 
int textureHeight
 Texture height for tiling.
 
bool loaded
 Whether texture is loaded.
 

Detailed Description

Configuration for scrolling parallax backgrounds.

Definition at line 98 of file EntityRenderer.hpp.

Member Data Documentation

◆ loaded

bool EntityRenderer::BackgroundConfig::loaded

◆ scrollOffset

float EntityRenderer::BackgroundConfig::scrollOffset

Current scroll offset (updates each frame)

Definition at line 102 of file EntityRenderer.hpp.

Referenced by EntityRenderer::renderBackground(), EntityRenderer::setBackground(), and EntityRenderer::updateBackground().

◆ scrollSpeed

float EntityRenderer::BackgroundConfig::scrollSpeed

Scroll speed in pixels/second.

Definition at line 101 of file EntityRenderer.hpp.

Referenced by EntityRenderer::setBackground(), and EntityRenderer::updateBackground().

◆ textureHeight

int EntityRenderer::BackgroundConfig::textureHeight

Texture height for tiling.

Definition at line 104 of file EntityRenderer.hpp.

Referenced by EntityRenderer::renderBackground(), and EntityRenderer::setBackground().

◆ textureName

std::string EntityRenderer::BackgroundConfig::textureName

Texture name (loaded texture)

Definition at line 99 of file EntityRenderer.hpp.

Referenced by EntityRenderer::clearBackground(), EntityRenderer::renderBackground(), and EntityRenderer::setBackground().

◆ texturePath

std::string EntityRenderer::BackgroundConfig::texturePath

Asset path for texture loading.

Definition at line 100 of file EntityRenderer.hpp.

Referenced by EntityRenderer::setBackground().

◆ textureWidth

int EntityRenderer::BackgroundConfig::textureWidth

Texture width for tiling.

Definition at line 103 of file EntityRenderer.hpp.

Referenced by EntityRenderer::renderBackground(), EntityRenderer::setBackground(), and EntityRenderer::updateBackground().


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