mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-12 10:41:15 +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;
|
||||
|
||||
plugin->SetLocale(Locale_EN);
|
||||
|
||||
|
||||
paf::ui::Scene* pScene = plugin->PageOpen("page_main", pageOpenParam);
|
||||
g_rootPage = pScene;
|
||||
|
||||
pScene->SetDebugMode(paf::ui::Scene::DEBUG_AUTH_LAYOUT_RULER);
|
||||
|
||||
//paf::ui::Widget* pText = (paf::ui::Text*) pScene->FindChild("title_text");
|
||||
//pText->SetString(L"Test Text");
|
||||
// paf::ui::Widget* pText = (paf::ui::Text*) pScene->FindChild("title_text");
|
||||
// pText->SetString(L"Test Text");
|
||||
}
|
||||
|
||||
int paf_main(void)
|
||||
|
||||
@ -854,7 +854,7 @@ MxResult IsleApp::SetupWindow()
|
||||
SDL_SetNumberProperty(props, SDL_PROP_WINDOW_CREATE_HEIGHT_NUMBER, g_targetHeight);
|
||||
SDL_SetBooleanProperty(props, SDL_PROP_WINDOW_CREATE_FULLSCREEN_BOOLEAN, m_fullScreen);
|
||||
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_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
|
||||
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
|
||||
|
||||
@ -929,7 +929,7 @@ void GXMRenderer::AddTextureDestroyCallback(Uint32 id, IDirect3DRMTexture* textu
|
||||
|
||||
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);
|
||||
gxm->free(textureData);
|
||||
}
|
||||
@ -1121,7 +1121,8 @@ Uint32 GXMRenderer::GetTextureId(IDirect3DRMTexture* iTexture, bool isUi, float
|
||||
return textureId;
|
||||
}
|
||||
|
||||
const SceGxmTexture* GXMRenderer::UseTexture(GXMTextureCacheEntry& texture) {
|
||||
const SceGxmTexture* GXMRenderer::UseTexture(GXMTextureCacheEntry& texture)
|
||||
{
|
||||
texture.notification = &this->fragmentNotifications[this->currentFragmentBufferIndex];
|
||||
sceGxmSetFragmentTexture(gxm->context, 0, &texture.gxmTexture);
|
||||
return &texture.gxmTexture;
|
||||
|
||||
@ -79,6 +79,7 @@ class GXMRenderer : public Direct3DRMRenderer {
|
||||
void SetDither(bool dither) override;
|
||||
|
||||
void DeleteTextures(int index);
|
||||
|
||||
private:
|
||||
void AddTextureDestroyCallback(Uint32 id, IDirect3DRMTexture* texture);
|
||||
void AddMeshDestroyCallback(Uint32 id, IDirect3DRMMesh* mesh);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user