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