WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
VideoSettings Class Reference

Legacy OpenGL video-settings manager. More...

#include <video.h>

Collaboration diagram for VideoSettings:
[legend]

Public Member Functions

 VideoSettings ()
 
 ~VideoSettings ()
 
bool Init ()
 
void InitGL ()
 
void EnumDisplayModes ()
 
bool GetCompatibleWinMode (VideoCaps caps)
 
bool GetAvailableMode ()
 
void ResizeGLScene (int width, int height)
 
void SetMode ()
 
void SetCurrent ()
 
void SwapBuffers ()
 
void Release ()
 

Public Attributes

bool init = false
 
bool render = false
 
bool refresh = false
 
int xRes = 0
 
int yRes = 0
 
int pixelFormat = 0
 
float fov = 45.0f
 
int desktopBPP = 0
 
std::vector< VideoCapscapsList
 
VideoCaps curCap {}
 
int capIndex = 0
 
int AnisofilterLevel = 0
 
int numTextureUnits = 0
 
char * vendor = nullptr
 
char * version = nullptr
 
char * renderer = nullptr
 
bool hasHardware = false
 
bool secondPass = false
 
bool supportFragProg = false
 
bool supportVertexProg = false
 
bool supportGLSL = false
 
bool supportCompression = false
 
bool supportMultiTex = false
 
bool supportDrawRangeElements = false
 
bool supportPointSprites = false
 
bool supportShaders = false
 
bool supportAntiAlias = false
 
bool supportVBO = false
 
bool supportPBO = false
 
bool supportFBO = false
 
bool supportNPOT = false
 
bool supportOGL20 = false
 
bool supportWGLPixelFormat = false
 
bool supportTexRects = false
 
bool useMasking = false
 
bool useEnvMapping = true
 

Detailed Description

Legacy OpenGL video-settings manager.

Enumerates display modes, negotiates pixel formats, and tracks GPU capabilities. Retained for backward compatibility with the fixed-function rendering path.

Definition at line 32 of file video.h.

Constructor & Destructor Documentation

◆ VideoSettings()

VideoSettings::VideoSettings ( )
default

◆ ~VideoSettings()

VideoSettings::~VideoSettings ( )

Definition at line 42 of file video.cpp.

Member Function Documentation

◆ EnumDisplayModes()

void VideoSettings::EnumDisplayModes ( )

Definition at line 270 of file video.cpp.

◆ GetAvailableMode()

bool VideoSettings::GetAvailableMode ( )

Definition at line 369 of file video.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetCompatibleWinMode()

bool VideoSettings::GetCompatibleWinMode ( VideoCaps  caps)

Definition at line 437 of file video.cpp.

◆ Init()

bool VideoSettings::Init ( )

Definition at line 62 of file video.cpp.

Here is the caller graph for this function:

◆ InitGL()

void VideoSettings::InitGL ( )

Definition at line 187 of file video.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Release()

void VideoSettings::Release ( )

Definition at line 567 of file video.cpp.

◆ ResizeGLScene()

void VideoSettings::ResizeGLScene ( int  width,
int  height 
)

Definition at line 687 of file video.cpp.

◆ SetCurrent()

void VideoSettings::SetCurrent ( )

Definition at line 713 of file video.cpp.

Here is the caller graph for this function:

◆ SetMode()

void VideoSettings::SetMode ( )

Definition at line 587 of file video.cpp.

Here is the call graph for this function:

◆ SwapBuffers()

void VideoSettings::SwapBuffers ( )

Definition at line 705 of file video.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ AnisofilterLevel

int VideoSettings::AnisofilterLevel = 0

Definition at line 77 of file video.h.

◆ capIndex

int VideoSettings::capIndex = 0

Definition at line 75 of file video.h.

◆ capsList

std::vector<VideoCaps> VideoSettings::capsList

Definition at line 73 of file video.h.

◆ curCap

VideoCaps VideoSettings::curCap {}

Definition at line 74 of file video.h.

◆ desktopBPP

int VideoSettings::desktopBPP = 0

Definition at line 70 of file video.h.

◆ fov

float VideoSettings::fov = 45.0f

Definition at line 69 of file video.h.

◆ hasHardware

bool VideoSettings::hasHardware = false

Definition at line 86 of file video.h.

◆ init

bool VideoSettings::init = false

Definition at line 61 of file video.h.

◆ numTextureUnits

int VideoSettings::numTextureUnits = 0

Definition at line 78 of file video.h.

◆ pixelFormat

int VideoSettings::pixelFormat = 0

Definition at line 68 of file video.h.

◆ refresh

bool VideoSettings::refresh = false

Definition at line 63 of file video.h.

◆ render

bool VideoSettings::render = false

Definition at line 62 of file video.h.

◆ renderer

char* VideoSettings::renderer = nullptr

Definition at line 83 of file video.h.

◆ secondPass

bool VideoSettings::secondPass = false

Definition at line 87 of file video.h.

◆ supportAntiAlias

bool VideoSettings::supportAntiAlias = false

Definition at line 98 of file video.h.

◆ supportCompression

bool VideoSettings::supportCompression = false

Definition at line 93 of file video.h.

◆ supportDrawRangeElements

bool VideoSettings::supportDrawRangeElements = false

Definition at line 95 of file video.h.

◆ supportFBO

bool VideoSettings::supportFBO = false

Definition at line 101 of file video.h.

◆ supportFragProg

bool VideoSettings::supportFragProg = false

Definition at line 90 of file video.h.

◆ supportGLSL

bool VideoSettings::supportGLSL = false

Definition at line 92 of file video.h.

◆ supportMultiTex

bool VideoSettings::supportMultiTex = false

Definition at line 94 of file video.h.

◆ supportNPOT

bool VideoSettings::supportNPOT = false

Definition at line 102 of file video.h.

◆ supportOGL20

bool VideoSettings::supportOGL20 = false

Definition at line 103 of file video.h.

◆ supportPBO

bool VideoSettings::supportPBO = false

Definition at line 100 of file video.h.

◆ supportPointSprites

bool VideoSettings::supportPointSprites = false

Definition at line 96 of file video.h.

◆ supportShaders

bool VideoSettings::supportShaders = false

Definition at line 97 of file video.h.

◆ supportTexRects

bool VideoSettings::supportTexRects = false

Definition at line 105 of file video.h.

◆ supportVBO

bool VideoSettings::supportVBO = false

Definition at line 99 of file video.h.

◆ supportVertexProg

bool VideoSettings::supportVertexProg = false

Definition at line 91 of file video.h.

◆ supportWGLPixelFormat

bool VideoSettings::supportWGLPixelFormat = false

Definition at line 104 of file video.h.

◆ useEnvMapping

bool VideoSettings::useEnvMapping = true

Definition at line 108 of file video.h.

◆ useMasking

bool VideoSettings::useMasking = false

Definition at line 107 of file video.h.

◆ vendor

char* VideoSettings::vendor = nullptr

Definition at line 81 of file video.h.

◆ version

char* VideoSettings::version = nullptr

Definition at line 82 of file video.h.

◆ xRes

int VideoSettings::xRes = 0

Definition at line 66 of file video.h.

◆ yRes

int VideoSettings::yRes = 0

Definition at line 67 of file video.h.


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