mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-01 02:22:39 +00:00
the final part of Metal
This commit is contained in:
parent
7f765fc0a4
commit
346f6f119e
1 changed files with 6 additions and 5 deletions
|
@ -17,10 +17,6 @@
|
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
// TODO:
|
||||
// - wipe
|
||||
// - maybe fix VSync
|
||||
|
||||
#include "renderMetal.h"
|
||||
#include "backends/imgui_impl_metal.h"
|
||||
|
||||
|
@ -164,7 +160,12 @@ void FurnaceGUIRenderMetal::renderGUI() {
|
|||
}
|
||||
|
||||
void FurnaceGUIRenderMetal::wipe(float alpha) {
|
||||
// TODO
|
||||
// you know what? cheat.
|
||||
// I don't feel like learning yet another API just to please Apple.
|
||||
// screw it.
|
||||
SDL_SetRenderDrawBlendMode(sdlRend,SDL_BLENDMODE_BLEND);
|
||||
SDL_SetRenderDrawColor(sdlRend,0,0,0,255*alpha);
|
||||
SDL_RenderFillRect(sdlRend,NULL);
|
||||
}
|
||||
|
||||
void FurnaceGUIRenderMetal::present() {
|
||||
|
|
Loading…
Reference in a new issue