mirror of
https://github.com/raysan5/raylib.git
synced 2026-04-16 12:09:10 -04:00
REVIEWED: Software renderer flag, renamed to GRAPHICS_API_OPENGL_SOFTWARE
Dropped the `11` relative to OpenGL 1.1 because latest `rlsw 1.5` also includes support for FBOs and could potentially implemented other higher level features in the feature, discerning from OpenGL 1.1 limitations
This commit is contained in:
@ -71,7 +71,7 @@
|
||||
|
||||
#include <malloc.h> // Required for alloca()
|
||||
|
||||
#if !defined(GRAPHICS_API_OPENGL_11_SOFTWARE)
|
||||
#if !defined(GRAPHICS_API_OPENGL_SOFTWARE)
|
||||
#include <GL/gl.h>
|
||||
#endif
|
||||
|
||||
@ -1218,7 +1218,7 @@ void SwapScreenBuffer(void)
|
||||
{
|
||||
if (!platform.hdc) abort();
|
||||
|
||||
#if defined(GRAPHICS_API_OPENGL_11_SOFTWARE)
|
||||
#if defined(GRAPHICS_API_OPENGL_SOFTWARE)
|
||||
// Update framebuffer
|
||||
rlCopyFramebuffer(0, 0, CORE.Window.render.width, CORE.Window.render.height, PIXELFORMAT_UNCOMPRESSED_R8G8B8A8, platform.pixels);
|
||||
|
||||
@ -1603,7 +1603,7 @@ int InitPlatform(void)
|
||||
// NOTE: Windows GDI object that represents a drawing surface
|
||||
platform.hdc = GetDC(platform.hwnd);
|
||||
|
||||
if (rlGetVersion() == RL_OPENGL_11_SOFTWARE) // Using software renderer
|
||||
if (rlGetVersion() == RL_OPENGL_SOFTWARE) // Using software renderer
|
||||
{
|
||||
// Initialize software framebuffer
|
||||
BITMAPINFO bmi = { 0 };
|
||||
@ -1649,11 +1649,11 @@ int InitPlatform(void)
|
||||
TRACELOG(LOG_INFO, " > Render size: %i x %i", CORE.Window.render.width, CORE.Window.render.height);
|
||||
TRACELOG(LOG_INFO, " > Viewport offsets: %i, %i", CORE.Window.renderOffset.x, CORE.Window.renderOffset.y);
|
||||
|
||||
if (rlGetVersion() == RL_OPENGL_11_SOFTWARE) // Using software renderer
|
||||
if (rlGetVersion() == RL_OPENGL_SOFTWARE) // Using software renderer
|
||||
{
|
||||
TRACELOG(LOG_INFO, "GL: OpenGL device information:");
|
||||
TRACELOG(LOG_INFO, " > Vendor: %s", "raylib");
|
||||
TRACELOG(LOG_INFO, " > Renderer: %s", "rlsw - OpenGL 1.1 Software Renderer");
|
||||
TRACELOG(LOG_INFO, " > Renderer: %s", "rlsw - OpenGL Software Renderer");
|
||||
TRACELOG(LOG_INFO, " > Version: %s", "1.0");
|
||||
TRACELOG(LOG_INFO, " > GLSL: %s", "NOT SUPPORTED");
|
||||
}
|
||||
@ -1719,7 +1719,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpara
|
||||
case WM_DESTROY:
|
||||
{
|
||||
// Clean up for window destruction
|
||||
if (rlGetVersion() == RL_OPENGL_11_SOFTWARE) // Using software renderer
|
||||
if (rlGetVersion() == RL_OPENGL_SOFTWARE) // Using software renderer
|
||||
{
|
||||
if (platform.hdcmem)
|
||||
{
|
||||
@ -1935,7 +1935,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpara
|
||||
} break;
|
||||
case WM_PAINT:
|
||||
{
|
||||
if (rlGetVersion() == RL_OPENGL_11_SOFTWARE) // Using software renderer
|
||||
if (rlGetVersion() == RL_OPENGL_SOFTWARE) // Using software renderer
|
||||
{
|
||||
PAINTSTRUCT ps = { 0 };
|
||||
HDC hdc = BeginPaint(hwnd, &ps);
|
||||
|
||||
Reference in New Issue
Block a user