forked from mia/Aegisub
Add list of available OpenGL extensions.
Originally committed to SVN as r3598.
This commit is contained in:
parent
c821a7e172
commit
b7caa012da
4 changed files with 16 additions and 1 deletions
|
@ -192,6 +192,11 @@ public:
|
||||||
/// @return Video card renderer version
|
/// @return Video card renderer version
|
||||||
/// @retval Any
|
/// @retval Any
|
||||||
virtual wxString VideoVersion();
|
virtual wxString VideoVersion();
|
||||||
|
|
||||||
|
/// Video card OpenGL extensions
|
||||||
|
/// @return List of extensions
|
||||||
|
/// @retval Space delimited list of extensions
|
||||||
|
virtual wxString VideoExt();
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
/// @name Windows
|
/// @name Windows
|
||||||
|
@ -301,7 +306,8 @@ private:
|
||||||
enum VideoInfo {
|
enum VideoInfo {
|
||||||
VIDEO_RENDERER, ///< Renderer
|
VIDEO_RENDERER, ///< Renderer
|
||||||
VIDEO_VENDOR, ///< Vendor
|
VIDEO_VENDOR, ///< Vendor
|
||||||
VIDEO_VERSION ///< Version
|
VIDEO_VERSION, ///< Version
|
||||||
|
VIDEO_EXT ///< Extensions
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Retrieve OpenGL video information.
|
/// Retrieve OpenGL video information.
|
||||||
|
|
|
@ -44,6 +44,7 @@ const Report::nameMap Report::HumanNames() {
|
||||||
nMap.insert(nPair("dll", _TT("DLL")));
|
nMap.insert(nPair("dll", _TT("DLL")));
|
||||||
nMap.insert(nPair("dshowfilter", _TT("DirectShow Filters")));
|
nMap.insert(nPair("dshowfilter", _TT("DirectShow Filters")));
|
||||||
nMap.insert(nPair("editfontsize", _TT("Edit Font Size")));
|
nMap.insert(nPair("editfontsize", _TT("Edit Font Size")));
|
||||||
|
nMap.insert(nPair("extensions" , _TT("Extensions")));
|
||||||
nMap.insert(nPair("features", _TT("Features")));
|
nMap.insert(nPair("features", _TT("Features")));
|
||||||
nMap.insert(nPair("features2", _TT("Features2")));
|
nMap.insert(nPair("features2", _TT("Features2")));
|
||||||
nMap.insert(nPair("firewall", _TT("Firewall Installed")));
|
nMap.insert(nPair("firewall", _TT("Firewall Installed")));
|
||||||
|
|
|
@ -81,6 +81,9 @@ wxString Platform::GetVideoInfo(enum Platform::VideoInfo which) {
|
||||||
wxString value;
|
wxString value;
|
||||||
|
|
||||||
switch (which) {
|
switch (which) {
|
||||||
|
case VIDEO_EXT:
|
||||||
|
value = wxString(glGetString(GL_EXTENSIONS));
|
||||||
|
break;
|
||||||
case VIDEO_RENDERER:
|
case VIDEO_RENDERER:
|
||||||
value = wxString(glGetString(GL_RENDERER));
|
value = wxString(glGetString(GL_RENDERER));
|
||||||
break;
|
break;
|
||||||
|
@ -173,6 +176,10 @@ wxString Platform::VideoVersion() {
|
||||||
return GetVideoInfo(VIDEO_VERSION);
|
return GetVideoInfo(VIDEO_VERSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxString Platform::VideoExt() {
|
||||||
|
return GetVideoInfo(VIDEO_EXT);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
|
|
||||||
wxString Platform::PatchLevel() {
|
wxString Platform::PatchLevel() {
|
||||||
|
|
|
@ -95,6 +95,7 @@ Report::XMLReport Report::ReportCreate() {
|
||||||
Add(display, "vendor", p->VideoVendor());
|
Add(display, "vendor", p->VideoVendor());
|
||||||
Add(display, "renderer", p->VideoRenderer());
|
Add(display, "renderer", p->VideoRenderer());
|
||||||
Add(display, "version", p->VideoVersion());
|
Add(display, "version", p->VideoVersion());
|
||||||
|
Add(display, "extensions", p->VideoExt());
|
||||||
Add(display, "depth", p->DisplayDepth());
|
Add(display, "depth", p->DisplayDepth());
|
||||||
Add(display, "colour", p->DisplayColour());
|
Add(display, "colour", p->DisplayColour());
|
||||||
Add(display, "size", p->DisplaySize());
|
Add(display, "size", p->DisplaySize());
|
||||||
|
|
Loading…
Reference in a new issue