mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-18 13:21:16 +00:00
clang-format
This commit is contained in:
parent
9ee7a9be8b
commit
bc96276c45
@ -13,14 +13,14 @@ void loadPluginCB(paf::Plugin* plugin)
|
|||||||
pageOpenParam.option = paf::Plugin::PageOption_None;
|
pageOpenParam.option = paf::Plugin::PageOption_None;
|
||||||
|
|
||||||
plugin->SetLocale(Locale_EN);
|
plugin->SetLocale(Locale_EN);
|
||||||
|
|
||||||
paf::ui::Scene* pScene = plugin->PageOpen("page_main", pageOpenParam);
|
paf::ui::Scene* pScene = plugin->PageOpen("page_main", pageOpenParam);
|
||||||
g_rootPage = pScene;
|
g_rootPage = pScene;
|
||||||
|
|
||||||
pScene->SetDebugMode(paf::ui::Scene::DEBUG_AUTH_LAYOUT_RULER);
|
pScene->SetDebugMode(paf::ui::Scene::DEBUG_AUTH_LAYOUT_RULER);
|
||||||
|
|
||||||
//paf::ui::Widget* pText = (paf::ui::Text*) pScene->FindChild("title_text");
|
// paf::ui::Widget* pText = (paf::ui::Text*) pScene->FindChild("title_text");
|
||||||
//pText->SetString(L"Test Text");
|
// pText->SetString(L"Test Text");
|
||||||
}
|
}
|
||||||
|
|
||||||
int paf_main(void)
|
int paf_main(void)
|
||||||
|
|||||||
@ -854,7 +854,7 @@ MxResult IsleApp::SetupWindow()
|
|||||||
SDL_SetNumberProperty(props, SDL_PROP_WINDOW_CREATE_HEIGHT_NUMBER, g_targetHeight);
|
SDL_SetNumberProperty(props, SDL_PROP_WINDOW_CREATE_HEIGHT_NUMBER, g_targetHeight);
|
||||||
SDL_SetBooleanProperty(props, SDL_PROP_WINDOW_CREATE_FULLSCREEN_BOOLEAN, m_fullScreen);
|
SDL_SetBooleanProperty(props, SDL_PROP_WINDOW_CREATE_FULLSCREEN_BOOLEAN, m_fullScreen);
|
||||||
SDL_SetStringProperty(props, SDL_PROP_WINDOW_CREATE_TITLE_STRING, WINDOW_TITLE);
|
SDL_SetStringProperty(props, SDL_PROP_WINDOW_CREATE_TITLE_STRING, WINDOW_TITLE);
|
||||||
#if defined(MINIWIN)&& !defined(__3DS__) && !defined(WINDOWS_STORE) && !defined(__vita__)
|
#if defined(MINIWIN) && !defined(__3DS__) && !defined(WINDOWS_STORE) && !defined(__vita__)
|
||||||
SDL_SetBooleanProperty(props, SDL_PROP_WINDOW_CREATE_OPENGL_BOOLEAN, true);
|
SDL_SetBooleanProperty(props, SDL_PROP_WINDOW_CREATE_OPENGL_BOOLEAN, true);
|
||||||
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
|
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
|
||||||
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
|
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
|
||||||
|
|||||||
@ -929,7 +929,7 @@ void GXMRenderer::AddTextureDestroyCallback(Uint32 id, IDirect3DRMTexture* textu
|
|||||||
|
|
||||||
void GXMRenderer::DeleteTextures(int index)
|
void GXMRenderer::DeleteTextures(int index)
|
||||||
{
|
{
|
||||||
for(auto& del : this->m_textures_delete[index]) {
|
for (auto& del : this->m_textures_delete[index]) {
|
||||||
void* textureData = sceGxmTextureGetData(&del);
|
void* textureData = sceGxmTextureGetData(&del);
|
||||||
gxm->free(textureData);
|
gxm->free(textureData);
|
||||||
}
|
}
|
||||||
@ -1121,7 +1121,8 @@ Uint32 GXMRenderer::GetTextureId(IDirect3DRMTexture* iTexture, bool isUi, float
|
|||||||
return textureId;
|
return textureId;
|
||||||
}
|
}
|
||||||
|
|
||||||
const SceGxmTexture* GXMRenderer::UseTexture(GXMTextureCacheEntry& texture) {
|
const SceGxmTexture* GXMRenderer::UseTexture(GXMTextureCacheEntry& texture)
|
||||||
|
{
|
||||||
texture.notification = &this->fragmentNotifications[this->currentFragmentBufferIndex];
|
texture.notification = &this->fragmentNotifications[this->currentFragmentBufferIndex];
|
||||||
sceGxmSetFragmentTexture(gxm->context, 0, &texture.gxmTexture);
|
sceGxmSetFragmentTexture(gxm->context, 0, &texture.gxmTexture);
|
||||||
return &texture.gxmTexture;
|
return &texture.gxmTexture;
|
||||||
|
|||||||
@ -79,6 +79,7 @@ class GXMRenderer : public Direct3DRMRenderer {
|
|||||||
void SetDither(bool dither) override;
|
void SetDither(bool dither) override;
|
||||||
|
|
||||||
void DeleteTextures(int index);
|
void DeleteTextures(int index);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void AddTextureDestroyCallback(Uint32 id, IDirect3DRMTexture* texture);
|
void AddTextureDestroyCallback(Uint32 id, IDirect3DRMTexture* texture);
|
||||||
void AddMeshDestroyCallback(Uint32 id, IDirect3DRMMesh* mesh);
|
void AddMeshDestroyCallback(Uint32 id, IDirect3DRMMesh* mesh);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user