summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/renderer_opengl.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* video_core/renderer_opengl: Replace direct usage of global system object accessorsLioncash2019-03-041-0/+1
| | | | | We already pass a reference to the system object to the constructor of the renderer, so we can just use that instead of using the global accessor functions.
* common/math_util: Move contents into the Common namespaceLioncash2019-02-271-2/+2
| | | | | These types are within the common library, so they should be within the Common namespace.
* gl_shader_disk_cache: Pass core system as argument and guard against games without title idsReinUsesLisp2019-02-071-1/+7
|
* frontend: Refactor ScopeAcquireWindowContext out of renderer_opengl.bunnei2019-01-241-10/+0
|
* renderer_opengl: Correct forward declaration of FramebufferLayoutLioncash2018-12-261-1/+1
| | | | | This is actually a struct, not a class, which can lead to compilation warnings.
* yuzu, video_core: Screenshot functionalityzhupengfei2018-12-181-1/+8
| | | | Allows capturing screenshot at the current internal resolution (native for software renderer), but a setting is available to capture it in other resolutions. The screenshot is saved to a single PNG in the current layout.
* global: Use std::optional instead of boost::optional (#1578)Frederic L2018-10-301-1/+2
| | | | | | | | | | | | | | | | * get rid of boost::optional * Remove optional references * Use std::reference_wrapper for optional references * Fix clang format * Fix clang format part 2 * Adressed feedback * Fix clang format and MacOS build
* renderer_opengl: Namespace OpenGL codeLioncash2018-08-221-0/+4
| | | | | | | Namespaces all OpenGL code under the OpenGL namespace. Prevents polluting the global namespace and allows clear distinction between other renderers' code in the future.
* rasterizer_interface: Remove ScreenInfo from AccelerateDraw()'s signatureLioncash2018-08-211-1/+1
| | | | | | This is an OpenGL renderer-specific data type. Given that, this type shouldn't be used within the base interface for the rasterizer. Instead, we can pass this information to the rasterizer via reference.
* renderer_base: Make creation of the rasterizer, the responsibility of the renderers themselvesLioncash2018-08-211-0/+2
| | | | | | | | | | | | | | | | | | | Given we use a base-class type within the renderer for the rasterizer (RasterizerInterface), we want to allow renderers to perform more complex initialization if they need to do such a thing. This makes it important to reserve type information. Given the OpenGL renderer is quite simple settings-wise, this is just a simple shuffling of the initialization code. For something like Vulkan however this might involve doing something like: // Initialize and call rasterizer-specific function that requires // the full type of the instance created. auto raster = std::make_unique<VulkanRasterizer>(some, params); raster->CallSomeVulkanRasterizerSpecificFunction(); // Assign to base class variable rasterizer = std::move(raster)
* core: Namespace EmuWindowLioncash2018-08-121-3/+5
| | | | Gets the class out of the global namespace.
* video_core: Eliminate the g_renderer global variableLioncash2018-08-041-1/+1
| | | | | | | | | | | | | | We move the initialization of the renderer to the core class, while keeping the creation of it and any other specifics in video_core. This way we can ensure that the renderer is initialized and doesn't give unfettered access to the renderer. This also makes dependencies on types more explicit. For example, the GPU class doesn't need to depend on the existence of a renderer, it only needs to care about whether or not it has a rasterizer, but since it was accessing the global variable, it was also making the renderer a part of its dependency chain. By adjusting the interface, we can get rid of this dependency.
* video_core: Make global EmuWindow instance part of the base renderer classLioncash2018-08-021-10/+5
| | | | | | | | | | | Makes the global a member of the RendererBase class. We also change this to be a reference. Passing any form of null pointer to these functions is incorrect entirely, especially given the code itself assumes that the pointer would always be in a valid state. This also makes it easier to follow the lifecycle of instances being used, as we explicitly interact the renderer with the rasterizer, rather than it just operating on a global pointer.
* vi: Partially implement buffer crop parameters.bunnei2018-07-181-0/+1
|
* OpenGL: Use MakeCurrent/DoneCurrent for multithreaded rendering.bunnei2018-07-141-0/+7
|
* gl_rasterizer: Implement AccelerateDisplay to forward textures to framebuffers.bunnei2018-06-271-1/+1
|
* renderer_opengl: Use OGLProgram instead of OGLShader.bunnei2018-04-141-1/+1
|
* renderer_opengl.h: Update from citra to yuzuN00byKing2018-04-041-2/+2
|
* renderer_opengl: Use better naming for DrawScreens and DrawSingleScreen.bunnei2018-03-271-2/+2
|
* renderer_opengl: Add framebuffer_transform_flags member variable.bunnei2018-03-231-2/+2
|
* video_core: Move FramebufferInfo to FramebufferConfig in GPU.bunnei2018-03-231-4/+5
|
* renderer_opengl: Support framebuffer flip vertical.bunnei2018-02-121-0/+3
|
* clang-formatMerryMage2018-01-161-1/+2
|
* renderer_gl: Clear screen to black before rendering framebuffer.bunnei2018-01-151-2/+2
|
* renderer: Render previous frame when no new one is available.bunnei2018-01-151-5/+3
|
* Remove references to PICA and rasterizers in video_coreJames Rowe2018-01-131-1/+0
|
* renderer_opengl: Support rendering Switch framebuffer.bunnei2018-01-111-7/+10
|
* renderer_opengl: Update DrawScreens for Switch.bunnei2018-01-111-1/+1
|
* OpenGL: Remove unused RendererOpenGL fieldsYuri Kunde Schlesner2017-05-281-3/+0
|
* Remove empty newlines in #include blocks.Emmanuel Gil Peyrot2016-09-211-4/+0
| | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
* Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner2016-09-191-2/+5
|
* Sources: Run clang-format on everything.Emmanuel Gil Peyrot2016-09-181-8/+7
|
* VideoCore: Run include-what-you-use and fix most includes.Emmanuel Gil Peyrot2016-04-301-0/+3
|
* HWRasterizer: Texture forwardingtfarley2016-04-211-18/+26
|
* Improve error report from Init() functionsLittleWhite2016-03-081-1/+1
| | | | Add error popup when citra initialization failed
* fix some xcode 7.0 warningsMartin Lindhe2015-09-291-1/+0
|
* video_core: Remove unnecessary includes from headersLioncash2015-09-111-3/+0
|
* renderer_opengl: Remove unimplemented function declarationLioncash2015-09-101-3/+0
|
* Replace the previous OpenGL loader with a glad-generated 3.3 oneYuri Kunde Schlesner2015-08-301-1/+1
| | | | | | The main advantage of switching to glad from glLoadGen is that, apart from being actively maintained, it supports a customizable entrypoint loader function, which makes it possible to also support OpenGL ES.
* OpenGL renderertfarley2015-05-231-6/+10
|
* Added LCD registers, and implementation for color filling in OGL code.archshift2015-03-091-1/+4
|
* video_core: Implement the remaining framebuffer formats in the OpenGL renderer.Emmanuel Gil Peyrot2015-02-151-0/+5
|
* License changepurpasmart962014-12-211-1/+1
|
* OpenGL Renderer: Cleanup viewport extent calculation.Tony Wasserka2014-11-181-17/+7
|
* Viewport scaling and display density independenceKevin Hartman2014-11-181-0/+15
| | | | | The view is scaled to be as large as possible, without changing the aspect, within the bounds of the window. On "retina" displays, or other displays where window units != pixels, the view should no longer draw incorrectly.
* Add `override` keyword through the code.Yuri Kunde Schlesner2014-10-261-4/+4
| | | | This was automated using `clang-modernize`.
* Rework OpenGL renderer.Yuri Kunde Schlesner2014-10-121-46/+22
| | | | | | | | | The OpenGL renderer has been revised, with the following changes: - Initialization and rendering have been refactored to reduce the number of redundant objects used. - Framebuffer rotation is now done directly, using texture mapping. - Vertex coordinates are now given in pixels, and the projection matrix isn't hardcoded anymore.
* OpenGL renderer: Shuffle initialization code around and rename functions.Yuri Kunde Schlesner2014-10-121-8/+2
|
* Remove virtual inheritance from RendererOpenGLYuri Kunde Schlesner2014-10-121-2/+2
| | | | Also make destructor virtual so that instances are properly destructed.
* Moved common_types::Rect from common to Common namespacearchshift2014-09-091-1/+1
|
* Replace GLEW with a glLoadGen loader.Yuri Kunde Schlesner2014-09-011-1/+1
| | | | | | | | | This should fix the GL loading errors that occur in some drivers due to the use of deprecated functions by GLEW. Side benefits are more accurate auto-completion (deprecated function and symbols don't exist) and faster pointer loading (less entrypoints to load). In addition it removes an external library depency, simplifying the build system a bit and eliminating one set of binary libraries for Windows.
* Downgrade GLSL version to 1.50 (compatible with GL 3.2)Yuri Kunde Schlesner2014-08-281-0/+3
|
* VideoCore: Fixes rendering issues on Qt and corrects framebuffer output size.bunnei2014-08-261-0/+1
|
* Rewrite of OpenGL renderer, including OS X supportKevin Hartman2014-08-261-27/+36
| | | | | | Screen contents are now displayed using textured quads. This can be updated to expose an FBO once an OpenGL backend for when Pica rendering is being worked on. That FBO's texture can then be applied to the quads. Previously, FBO blitting was used in order to display screen contents, which did not work on OS X. The new textured quad approach is less of a compatibility risk.
* Renderer: Fix component order in bottom framebuffer.Tony Wasserka2014-07-231-4/+3
|
* common_types: Changed BasicRect back to Rect, in the common namespacearchshift2014-05-201-1/+1
| | | | Only Rect is in the namespace for now; the rest of common should be added in the future
* Xcode complains that the class name is redundant.archshift2014-04-281-1/+1
|
* Rect to BasicRectarchshift2014-04-281-1/+1
| | | | Somewhere along the line an OSX header had already taken the name Rect.
* removed DISALLOW_COPY_AND_ASSIGN in favor of NonCopyable classbunnei2014-04-281-1/+0
|
* fixed renderer to use correct framebuffer locationbunnei2014-04-271-2/+2
|
* fixed project includes to use new directory structurebunnei2014-04-091-3/+3
|
* got rid of 'src' folders in each sub-projectbunnei2014-04-091-0/+91