Review UWP project -WIP-
This commit is contained in:
parent
32387317bf
commit
8d51ad567f
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
using namespace raylibUWP;
|
using namespace raylibUWP;
|
||||||
|
|
||||||
// The main function creates an IFrameworkViewSource for our app, and runs the app.
|
// The main function creates an IFrameworkViewSource for our app, and runs the app
|
||||||
[Platform::MTAThread]
|
[Platform::MTAThread]
|
||||||
int main(Platform::Array<Platform::String^>^)
|
int main(Platform::Array<Platform::String^>^)
|
||||||
{
|
{
|
||||||
|
@ -17,9 +17,9 @@ namespace raylibUWP
|
|||||||
ref class App sealed : public BaseApp
|
ref class App sealed : public BaseApp
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
App();
|
App();
|
||||||
|
|
||||||
// IFrameworkView Methods.
|
|
||||||
void Update() override;
|
void Update() override;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -119,7 +119,7 @@ public:
|
|||||||
|
|
||||||
handle = (EGLNativeWindowType)window;
|
handle = (EGLNativeWindowType)window;
|
||||||
|
|
||||||
InitWindow(width, height, NULL);
|
InitWindow(width, height, "raylib game example");
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void Load(Platform::String^ entryPoint) {}
|
virtual void Load(Platform::String^ entryPoint) {}
|
||||||
|
@ -0,0 +1,40 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="App.cpp" />
|
||||||
|
<ClCompile Include="pch.cpp" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="App.h" />
|
||||||
|
<ClInclude Include="BaseApp.h" />
|
||||||
|
<ClInclude Include="pch.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Image Include="Assets\Logo.scale-100.png">
|
||||||
|
<Filter>Logo</Filter>
|
||||||
|
</Image>
|
||||||
|
<Image Include="Assets\SmallLogo.scale-100.png">
|
||||||
|
<Filter>Logo</Filter>
|
||||||
|
</Image>
|
||||||
|
<Image Include="Assets\StoreLogo.scale-100.png">
|
||||||
|
<Filter>Logo</Filter>
|
||||||
|
</Image>
|
||||||
|
<Image Include="Assets\WideLogo.scale-100.png">
|
||||||
|
<Filter>Logo</Filter>
|
||||||
|
</Image>
|
||||||
|
<Image Include="Assets\SplashScreen.scale-100.png">
|
||||||
|
<Filter>Logo</Filter>
|
||||||
|
</Image>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<AppxManifest Include="Package.appxmanifest" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="packages.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Logo">
|
||||||
|
<UniqueIdentifier>{cdf72d55-f249-4ad6-9a91-f8a084e64933}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
@ -3149,8 +3149,8 @@ static bool InitGraphicsDevice(int width, int height)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get EGL device window size
|
// Get EGL device window size
|
||||||
eglQuerySurface(CORE.Window.device, CORE.Window.surface, EGL_WIDTH, &CORE.Window.screen.width);
|
eglQuerySurface(CORE.Window.device, CORE.Window.surface, EGL_WIDTH, &CORE.Window.display.width);
|
||||||
eglQuerySurface(CORE.Window.device, CORE.Window.surface, EGL_HEIGHT, &CORE.Window.screen.height);
|
eglQuerySurface(CORE.Window.device, CORE.Window.surface, EGL_HEIGHT, &CORE.Window.display.height);
|
||||||
|
|
||||||
#endif // PLATFORM_UWP
|
#endif // PLATFORM_UWP
|
||||||
|
|
||||||
@ -3263,8 +3263,8 @@ static bool InitGraphicsDevice(int width, int height)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Grab the width and height of the surface
|
// Grab the width and height of the surface
|
||||||
//eglQuerySurface(CORE.Window.device, CORE.Window.surface, EGL_WIDTH, &CORE.Window.render.width);
|
CORE.Window.render.width = CORE.Window.display.width;
|
||||||
//eglQuerySurface(CORE.Window.device, CORE.Window.surface, EGL_HEIGHT, &CORE.Window.render.height);
|
CORE.Window.render.height = CORE.Window.display.height;
|
||||||
|
|
||||||
TRACELOG(LOG_INFO, "DISPLAY: Device initialized successfully");
|
TRACELOG(LOG_INFO, "DISPLAY: Device initialized successfully");
|
||||||
TRACELOG(LOG_INFO, " > Display size: %i x %i", CORE.Window.display.width, CORE.Window.display.height);
|
TRACELOG(LOG_INFO, " > Display size: %i x %i", CORE.Window.display.width, CORE.Window.display.height);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user