RhythmGame 1.4.3
Loading...
Searching...
No Matches
Signals | Public Member Functions | Properties | List of all members
qml_components::Bga Class Reference

A single BGA layer. More...

#include <Bga.h>

Inheritance diagram for qml_components::Bga:
Inheritance graph
[legend]
Collaboration diagram for qml_components::Bga:
Collaboration graph
[legend]

Signals

void videoSinkChanged ()
 

Public Member Functions

 Bga (std::vector< std::pair< std::chrono::nanoseconds, QMediaPlayer * > > videoFiles, std::vector< std::pair< std::chrono::nanoseconds, QVideoFrame * > > images, QObject *parent=nullptr)
 
auto isBitmapOnly () const -> bool
 
auto getVideoSink () const -> QVideoSink *
 
void setVideoSink (QVideoSink *newVideoSink)
 
void update (std::chrono::nanoseconds offsetFromStart)
 

Properties

QVideoSink * videoSink
 The video sink to output the BGA to.
 
bool bitmapOnly
 

Detailed Description

A single BGA layer.

https://hitkey.nekokan.dyndns.info/cmds.htm#BMPXX In QML, assign a QVideoSink to the videoSink property. When a chart is played, it will update the bga and that will update the pixels in the provided videoSink.

Constructor & Destructor Documentation

◆ Bga()

qml_components::Bga::Bga ( std::vector< std::pair< std::chrono::nanoseconds, QMediaPlayer * > >  videoFiles,
std::vector< std::pair< std::chrono::nanoseconds, QVideoFrame * > >  images,
QObject *  parent = nullptr 
)
explicit

Member Function Documentation

◆ getVideoSink()

auto qml_components::Bga::getVideoSink ( ) const -> QVideoSink*

◆ isBitmapOnly()

auto qml_components::Bga::isBitmapOnly ( ) const -> bool
inline

◆ setVideoSink()

void qml_components::Bga::setVideoSink ( QVideoSink *  newVideoSink)

◆ update()

void qml_components::Bga::update ( std::chrono::nanoseconds  offsetFromStart)

◆ videoSinkChanged

void qml_components::Bga::videoSinkChanged ( )
signal

Property Documentation

◆ bitmapOnly

bool qml_components::Bga::bitmapOnly
read

◆ videoSink

QVideoSink* qml_components::Bga::videoSink
readwrite

The video sink to output the BGA to.

Playback can be started by calling\ gameplay_logic::ChartRunner::start() on the ChartRunner that owns theBGA.


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