summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/renderer_opengl.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-03-04video_core/renderer_opengl: Replace direct usage of global system object accessorsLioncash1-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.
2019-02-27common/math_util: Move contents into the Common namespaceLioncash1-2/+2
These types are within the common library, so they should be within the Common namespace.
2019-02-07gl_shader_disk_cache: Pass core system as argument and guard against games without title idsReinUsesLisp1-1/+7
2019-01-24frontend: Refactor ScopeAcquireWindowContext out of renderer_opengl.bunnei1-10/+0
2018-12-26renderer_opengl: Correct forward declaration of FramebufferLayoutLioncash1-1/+1
This is actually a struct, not a class, which can lead to compilation warnings.
2018-12-18yuzu, video_core: Screenshot functionalityzhupengfei1-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.
2018-10-30global: Use std::optional instead of boost::optional (#1578)Frederic L1-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
2018-08-22renderer_opengl: Namespace OpenGL codeLioncash1-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.
2018-08-21rasterizer_interface: Remove ScreenInfo from AccelerateDraw()'s signatureLioncash1-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.
2018-08-21renderer_base: Make creation of the rasterizer, the responsibility of the renderers themselvesLioncash1-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)
2018-08-12core: Namespace EmuWindowLioncash1-3/+5
Gets the class out of the global namespace.
2018-08-04video_core: Eliminate the g_renderer global variableLioncash1-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.
2018-08-02video_core: Make global EmuWindow instance part of the base renderer classLioncash1-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.
2018-07-18vi: Partially implement buffer crop parameters.bunnei1-0/+1
2018-07-14OpenGL: Use MakeCurrent/DoneCurrent for multithreaded rendering.bunnei1-0/+7
2018-06-27gl_rasterizer: Implement AccelerateDisplay to forward textures to framebuffers.bunnei1-1/+1
2018-04-14renderer_opengl: Use OGLProgram instead of OGLShader.bunnei1-1/+1
2018-04-04renderer_opengl.h: Update from citra to yuzuN00byKing1-2/+2
2018-03-27renderer_opengl: Use better naming for DrawScreens and DrawSingleScreen.bunnei1-2/+2
2018-03-23renderer_opengl: Add framebuffer_transform_flags member variable.bunnei1-2/+2
2018-03-23video_core: Move FramebufferInfo to FramebufferConfig in GPU.bunnei1-4/+5
2018-02-12renderer_opengl: Support framebuffer flip vertical.bunnei1-0/+3
2018-01-16clang-formatMerryMage1-1/+2
2018-01-15renderer_gl: Clear screen to black before rendering framebuffer.bunnei1-2/+2
2018-01-15renderer: Render previous frame when no new one is available.bunnei1-5/+3
2018-01-13Remove references to PICA and rasterizers in video_coreJames Rowe1-1/+0
2018-01-11renderer_opengl: Support rendering Switch framebuffer.bunnei1-7/+10
2018-01-11renderer_opengl: Update DrawScreens for Switch.bunnei1-1/+1
2017-05-28OpenGL: Remove unused RendererOpenGL fieldsYuri Kunde Schlesner1-3/+0
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot1-4/+0
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-19Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner1-2/+5
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot1-8/+7
2016-04-30VideoCore: Run include-what-you-use and fix most includes.Emmanuel Gil Peyrot1-0/+3
2016-04-21HWRasterizer: Texture forwardingtfarley1-18/+26
2016-03-08Improve error report from Init() functionsLittleWhite1-1/+1
Add error popup when citra initialization failed
2015-09-29fix some xcode 7.0 warningsMartin Lindhe1-1/+0
2015-09-11video_core: Remove unnecessary includes from headersLioncash1-3/+0
2015-09-10renderer_opengl: Remove unimplemented function declarationLioncash1-3/+0
2015-08-30Replace the previous OpenGL loader with a glad-generated 3.3 oneYuri Kunde Schlesner1-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.
2015-05-23OpenGL renderertfarley1-6/+10
2015-03-09Added LCD registers, and implementation for color filling in OGL code.archshift1-1/+4
2015-02-15video_core: Implement the remaining framebuffer formats in the OpenGL renderer.Emmanuel Gil Peyrot1-0/+5
2014-12-21License changepurpasmart961-1/+1
2014-11-18OpenGL Renderer: Cleanup viewport extent calculation.Tony Wasserka1-17/+7
2014-11-18Viewport scaling and display density independenceKevin Hartman1-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.
2014-10-26Add `override` keyword through the code.Yuri Kunde Schlesner1-4/+4
This was automated using `clang-modernize`.
2014-10-12Rework OpenGL renderer.Yuri Kunde Schlesner1-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.
2014-10-12OpenGL renderer: Shuffle initialization code around and rename functions.Yuri Kunde Schlesner1-8/+2
2014-10-12Remove virtual inheritance from RendererOpenGLYuri Kunde Schlesner1-2/+2
Also make destructor virtual so that instances are properly destructed.
2014-09-09Moved common_types::Rect from common to Common namespacearchshift1-1/+1
2014-09-01Replace GLEW with a glLoadGen loader.Yuri Kunde Schlesner1-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.
2014-08-28Downgrade GLSL version to 1.50 (compatible with GL 3.2)Yuri Kunde Schlesner1-0/+3
2014-08-26VideoCore: Fixes rendering issues on Qt and corrects framebuffer output size.bunnei1-0/+1
2014-08-26Rewrite of OpenGL renderer, including OS X supportKevin Hartman1-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.
2014-07-23Renderer: Fix component order in bottom framebuffer.Tony Wasserka1-4/+3
2014-05-20common_types: Changed BasicRect back to Rect, in the common namespacearchshift1-1/+1
Only Rect is in the namespace for now; the rest of common should be added in the future
2014-04-28Xcode complains that the class name is redundant.archshift1-1/+1
2014-04-28Rect to BasicRectarchshift1-1/+1
Somewhere along the line an OSX header had already taken the name Rect.
2014-04-28removed DISALLOW_COPY_AND_ASSIGN in favor of NonCopyable classbunnei1-1/+0
2014-04-27fixed renderer to use correct framebuffer locationbunnei1-2/+2
2014-04-09fixed project includes to use new directory structurebunnei1-3/+3
2014-04-09got rid of 'src' folders in each sub-projectbunnei1-0/+0
2014-04-09fixed license header in video_corebunnei1-24/+3
2014-04-09- removed lots of unused code from gekkobunnei1-68/+27
- updated code style/naming conventions
2014-04-07added support for renderering the external framebuffersbunnei1-1/+7
2014-04-07added external framebuffer GL handlesbunnei1-2/+11
2014-04-06added initial renderer codebunnei1-0/+138