Skip to content

Commit

Permalink
Moved from SDL2 to GLFW
Browse files Browse the repository at this point in the history
  • Loading branch information
proconsule committed Sep 27, 2023
1 parent 489e61e commit c42300c
Show file tree
Hide file tree
Showing 48 changed files with 6,526 additions and 47,512 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# NXMP Changelog

## [0.8.2]
### Changes

- Update ImGui to last release
- Moved from SDL to GLFW for window context

### Fixed

- SubFont Color fix


## [0.8.1]

### Fixed
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ include $(DEVKITPRO)/libnx/switch_rules
#---------------------------------------------------------------------------------
TARGET := $(notdir $(CURDIR))
BUILD := build
SOURCES := source/iniparser source/imgloader source/networkshareclass source/UI/textscroller source/vout source/mediaprobe libs/imgui_toggle source/fileBrowser source/logger source/stats libs/imgui libs/imgui/opengl3 libs/imgui/misc/freetype source source/updater source/curldownloader source/touchcontrols source/playlist source/shadermania source/eqpreset source/database source/UI source/remotefs/UPNP source/remotefs/nfsDir source/remotefs/smb2 source/remotefs/sshDir source/remotefs/Enigma2 source/localfs source/localfs/usb source/remotefs/ftplib source/remotefs/HTTPDir source/themes
SOURCES := source/backends source/backends/glfw3-opengl3 source/iniparser source/imgloader source/networkshareclass source/UI/textscroller source/vout source/mediaprobe libs/imgui_toggle source/fileBrowser source/logger source/stats libs/imgui-1.89.9 libs/imgui-1.89.9/misc/freetype source source/updater source/curldownloader source/touchcontrols source/playlist source/shadermania source/eqpreset source/database source/UI source/remotefs/UPNP source/remotefs/nfsDir source/remotefs/smb2 source/remotefs/sshDir source/remotefs/Enigma2 source/localfs source/localfs/usb source/remotefs/ftplib source/remotefs/HTTPDir source/themes
DATA := data
INCLUDES := source/iniparser source/imgloader source/networkshareclass source/UI/textscroller source/vout source/mediaprobe libs/imgui_toggle source/fileBrowser source/logger source/stats libs/simpleini libs/imgui libs/imgui/opengl3 include source/curldownloader source/updater source/touchcontrols source/playlist source/shadermania source/eqpreset source/database source/remotefs/UPNP source/remotefs/nfsDir source/remotefs/smb2 source/remotefs/sshDir source/remotefs/Enigma2 source/localfs source/localfs/usb source/remotefs/ftplib source/remotefs/HTTPDir source/themes
INCLUDES := source/backends source/backends/glfw3-opengl3 source/iniparser source/imgloader source/networkshareclass source/UI/textscroller source/vout source/mediaprobe libs/imgui_toggle source/fileBrowser source/logger source/stats libs/simpleini libs/imgui-1.89.9 include source/curldownloader source/updater source/touchcontrols source/playlist source/shadermania source/eqpreset source/database source/remotefs/UPNP source/remotefs/nfsDir source/remotefs/smb2 source/remotefs/sshDir source/remotefs/Enigma2 source/localfs source/localfs/usb source/remotefs/ftplib source/remotefs/HTTPDir source/themes
ROMFS := romfs

GITREV:= -D'GITREV="$(shell git rev-parse --short HEAD)"'

VERSION_MAJOR := 0
VERSION_MINOR := 8
VERSION_MICRO := 1
VERSION_MICRO := 2

APP_TITLE := NXMP
APP_AUTHOR := proconsule and darkxex
Expand All @@ -69,13 +69,13 @@ CFLAGS += $(INCLUDE) -D__SWITCH__ $(BUILD_TYPE)

CFLAGS += -DVERSION_MAJOR=$(VERSION_MAJOR) -DVERSION_MINOR=$(VERSION_MINOR) -DVERSION_MICRO=$(VERSION_MICRO)

CXXFLAGS := $(CFLAGS) -std=gnu++17 -fno-rtti -fexceptions -fpermissive -DIMGUI_IMPL_OPENGL_LOADER_GLAD \
CXXFLAGS := $(CFLAGS) -std=gnu++17 -fno-rtti -fexceptions -fpermissive -DIMGUI_IMPL_OPENGL_LOADER_CUSTOM \
-DIMGUI_IMPL_OPENGL_LOADER_CUSTOM -DIMGUI_DISABLE_OBSOLETE_FUNCTIONS

ASFLAGS := -g $(ARCH)
LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)

LIBS := `curl-config --libs` `sdl2-config --libs` `freetype-config --libs` -lssh2 -lmpv -lswscale -lswresample -lavformat -lavfilter -lpostproc -lavcodec -lavutil -llzma -lopus -lvpx -lass -lharfbuzz -lfreetype -lfribidi -lstdc++ -ldav1d -lpng -lbz2 -lusbhsfs -lntfs-3g -llwext4 -lglad -lEGL -lglapi -ldrm_nouveau -ltinyxml2 -lturbojpeg -llua -lmbedcrypto -lmbedx509 -lmbedtls -lmbedcrypto -lmbedx509 -lmbedtls -lsqlite3 -lsmb2 -lnfs -lnx -ljansson -lc -lz
LIBS := `curl-config --libs` `freetype-config --libs` -lssh2 -lmpv `sdl2-config --libs` -lswscale -lswresample -lavformat -lavfilter -lpostproc -lavcodec -lavutil -llzma -lopus -lvpx -lass -lharfbuzz -lfreetype -lfribidi -lstdc++ -ldav1d -lpng -lbz2 -lusbhsfs -lntfs-3g -llwext4 -lglad -lEGL -lglapi -ldrm_nouveau -ltinyxml2 -lturbojpeg -llua -lmbedcrypto -lmbedx509 -lmbedtls -lmbedcrypto -lmbedx509 -lmbedtls -lsqlite3 -lsmb2 -lnfs -lglfw3 -lnx -ljansson -lc -lz



Expand Down
16 changes: 6 additions & 10 deletions include/gui.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@

#include <vector>
#include <string>
#include <SDL.h>


#include <switch.h>


#include <glad/glad.h>
//#include <glad/glad.h>
#include "appwindows.h"
#include "apppopups.h"
#include "playerwindows.h"
Expand Down Expand Up @@ -51,8 +50,8 @@

#include "NX-UPNP.h"


#include "imgui_impl_sdl.h"
#include "nxmp-gfx.h"
//#include "imgui_impl_sdl2.h"

#include "touchcontrols.h"
#include "shaderMania.h"
Expand All @@ -61,10 +60,7 @@

#include "vout.h"

#define handheldWidth 1280
#define handheldHeight 720
#define dockedWidth 1920
#define dockedHeight 1080


enum MENU_STATES {
MENU_STATE_HOME,
Expand Down Expand Up @@ -230,7 +226,7 @@ typedef struct {



extern SDL_Window *window;
//extern SDL_Window *window;
extern MenuItem item;

extern libMpv *libmpv;
Expand Down Expand Up @@ -292,7 +288,7 @@ extern float initScale;
extern bool isHandheld;
extern bool clockoc;
extern std::string tempKbUrl;
extern SDL_GLContext context;
//extern SDL_GLContext context;


extern shaderMania* shadermania;
Expand Down
123 changes: 0 additions & 123 deletions libs/imgui/imconfig.h

This file was deleted.

Loading

0 comments on commit c42300c

Please sign in to comment.