Home
last modified time | relevance | path

Searched refs:FontTexture (Results 1 – 5 of 5) sorted by relevance

/third_party/skia/third_party/externals/imgui/backends/
Dimgui_impl_sdlrenderer.cpp39 SDL_Texture* FontTexture; member
95 if (!bd->FontTexture) in ImGui_ImplSDLRenderer_NewFrame()
203 …bd->FontTexture = SDL_CreateTexture(bd->SDLRenderer, SDL_PIXELFORMAT_RGBA32, SDL_TEXTUREACCESS_STA… in ImGui_ImplSDLRenderer_CreateFontsTexture()
204 if (bd->FontTexture == NULL) in ImGui_ImplSDLRenderer_CreateFontsTexture()
209 SDL_UpdateTexture(bd->FontTexture, NULL, pixels, 4 * width); in ImGui_ImplSDLRenderer_CreateFontsTexture()
210 SDL_SetTextureBlendMode(bd->FontTexture, SDL_BLENDMODE_BLEND); in ImGui_ImplSDLRenderer_CreateFontsTexture()
213 io.Fonts->SetTexID((ImTextureID)(intptr_t)bd->FontTexture); in ImGui_ImplSDLRenderer_CreateFontsTexture()
222 if (bd->FontTexture) in ImGui_ImplSDLRenderer_DestroyFontsTexture()
225 SDL_DestroyTexture(bd->FontTexture); in ImGui_ImplSDLRenderer_DestroyFontsTexture()
226 bd->FontTexture = NULL; in ImGui_ImplSDLRenderer_DestroyFontsTexture()
Dimgui_impl_opengl2.cpp61 GLuint FontTexture; member
104 if (!bd->FontTexture) in ImGui_ImplOpenGL2_NewFrame()
249 glGenTextures(1, &bd->FontTexture); in ImGui_ImplOpenGL2_CreateFontsTexture()
250 glBindTexture(GL_TEXTURE_2D, bd->FontTexture); in ImGui_ImplOpenGL2_CreateFontsTexture()
257 io.Fonts->SetTexID((ImTextureID)(intptr_t)bd->FontTexture); in ImGui_ImplOpenGL2_CreateFontsTexture()
269 if (bd->FontTexture) in ImGui_ImplOpenGL2_DestroyFontsTexture()
271 glDeleteTextures(1, &bd->FontTexture); in ImGui_ImplOpenGL2_DestroyFontsTexture()
273 bd->FontTexture = 0; in ImGui_ImplOpenGL2_DestroyFontsTexture()
Dimgui_impl_dx9.cpp45 LPDIRECT3DTEXTURE9 FontTexture; member
330 bd->FontTexture = NULL; in ImGui_ImplDX9_CreateFontsTexture()
331 …(width, height, 1, D3DUSAGE_DYNAMIC, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, &bd->FontTexture, NULL) < 0) in ImGui_ImplDX9_CreateFontsTexture()
334 if (bd->FontTexture->LockRect(0, &tex_locked_rect, NULL, 0) != D3D_OK) in ImGui_ImplDX9_CreateFontsTexture()
338 bd->FontTexture->UnlockRect(0); in ImGui_ImplDX9_CreateFontsTexture()
341 io.Fonts->SetTexID((ImTextureID)bd->FontTexture); in ImGui_ImplDX9_CreateFontsTexture()
368 …if (bd->FontTexture) { bd->FontTexture->Release(); bd->FontTexture = NULL; ImGui::GetIO().Fonts->S… in ImGui_ImplDX9_InvalidateDeviceObjects()
376 if (!bd->FontTexture) in ImGui_ImplDX9_NewFrame()
Dimgui_impl_opengl3.cpp169 GLuint FontTexture; member
515 glGenTextures(1, &bd->FontTexture); in ImGui_ImplOpenGL3_CreateFontsTexture()
516 glBindTexture(GL_TEXTURE_2D, bd->FontTexture); in ImGui_ImplOpenGL3_CreateFontsTexture()
525 io.Fonts->SetTexID((ImTextureID)(intptr_t)bd->FontTexture); in ImGui_ImplOpenGL3_CreateFontsTexture()
537 if (bd->FontTexture) in ImGui_ImplOpenGL3_DestroyFontsTexture()
539 glDeleteTextures(1, &bd->FontTexture); in ImGui_ImplOpenGL3_DestroyFontsTexture()
541 bd->FontTexture = 0; in ImGui_ImplOpenGL3_DestroyFontsTexture()
Dimgui_impl_wgpu.cpp45 WGPUTexture FontTexture; // Font texture member
249 SafeRelease(res.FontTexture); in SafeRelease()
482 g_resources.FontTexture = wgpuDeviceCreateTexture(g_wgpuDevice, &tex_desc); in ImGui_ImplWGPU_CreateFontsTexture()
492 … g_resources.FontTextureView = wgpuTextureCreateView(g_resources.FontTexture, &tex_view_desc); in ImGui_ImplWGPU_CreateFontsTexture()
498 dst_view.texture = g_resources.FontTexture; in ImGui_ImplWGPU_CreateFontsTexture()
524 …static_assert(sizeof(ImTextureID) >= sizeof(g_resources.FontTexture), "Can't pack descriptor handl… in ImGui_ImplWGPU_CreateFontsTexture()
678 g_resources.FontTexture = NULL; in ImGui_ImplWGPU_Init()