bszili / sdl Goto Github PK
View Code? Open in Web Editor NEWThis project forked from amigaports/sdl_old
Automated mirror of https://hg.libsdl.org/SDL/
License: Other
This project forked from amigaports/sdl_old
Automated mirror of https://hg.libsdl.org/SDL/
License: Other
Simple DirectMedia Layer (SDL) Version 2.0 --- https://www.libsdl.org/ Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is used by video playback software, emulators, and popular games including Valve's award winning catalog and many Humble Bundle games. More extensive documentation is available in the docs directory, starting with README.md Enjoy! Sam Lantinga ([email protected])
Test Program :
SDL_Surface *sdl_sur = SDL_CreateRGBSurfaceFrom(icon, w, h, 32, w * 4, 0xFF0000, 0x00FF00, 0x0000FF, 0xFF000000);
if (sdl_sur == NULL) {
printf("SDL_CreateRGBSurfaceFrom failed: %s\n", SDL_GetError());
}
Result :
SDL_CreateRGBSurfaceFrom failed: Unknown pixel format
Debug tracking :
I put log into SDL_CreateRGBSurfaceFrom function
SDL_CreateRGBSurfaceFrom_REAL - bpp=32 Rmask=0x00FF0000 Gmask=0x0000FF00 Bmask=0x000000FF Amask=0x22577EE8
Amask result not good and random
I test to recompile library with add one more parameter on this function and amask working but last add parameter doesnt. Seem to be problem with library and function with 9 and more parameters.
I test SDL2.03 original from Itix and this version have same bug.
OpenGL context recreation that reset the texture filtering to nearest
When resize window (in opengl mode or with renderer OpenGL), texture filtering change to nearest.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.