Home
last modified time | relevance | path

Searched refs:atlas (Results 1 - 25 of 39) sorted by relevance

12

/third_party/skia/third_party/externals/imgui/misc/freetype/
H A Dimgui_freetype.cpp11 // 2021/03/02: set 'atlas->TexPixelsUseColors = true' to help some backends with deciding of a prefered texture format.
373 int DstIndex; // Index into atlas->Fonts[] and dst_tmp_array[]
389 bool ImFontAtlasBuildWithFreeTypeEx(FT_Library ft_library, ImFontAtlas* atlas, unsigned int extra_flags) in ImFontAtlasBuildWithFreeTypeEx() argument
391 IM_ASSERT(atlas->ConfigData.Size > 0); in ImFontAtlasBuildWithFreeTypeEx()
393 ImFontAtlasBuildInit(atlas); in ImFontAtlasBuildWithFreeTypeEx()
395 // Clear atlas in ImFontAtlasBuildWithFreeTypeEx()
396 atlas->TexID = (ImTextureID)NULL; in ImFontAtlasBuildWithFreeTypeEx()
397 atlas->TexWidth = atlas->TexHeight = 0; in ImFontAtlasBuildWithFreeTypeEx()
398 atlas in ImFontAtlasBuildWithFreeTypeEx()
737 ImFontAtlasBuildWithFreeType(ImFontAtlas* atlas) ImFontAtlasBuildWithFreeType() argument
[all...]
H A Dimgui_freetype.h37 // - you can manually assign this builder with 'atlas->FontBuilderIO = ImGuiFreeType::GetBuilderForFreeType()'
48 static inline bool BuildFontAtlas(ImFontAtlas* atlas, unsigned int flags = 0) { atlas->FontBuilderIO = GetBuilderForFreeType(); atlas->FontBuilderFlags = flags; return atlas->Build(); } in BuildFontAtlas() argument
/third_party/skia/tests/
H A DDrawOpAtlasTest.cpp81 static void check(skiatest::Reporter* r, GrDrawOpAtlas* atlas, in check() argument
83 REPORTER_ASSERT(r, expectedActive == atlas->numActivePages()); in check()
84 REPORTER_ASSERT(r, expectedMax == atlas->maxPages()); in check()
85 REPORTER_ASSERT(r, expectedAlloced == atlas->numAllocated_TestingOnly()); in check()
113 static bool fill_plot(GrDrawOpAtlas* atlas, in fill_plot() argument
125 code = atlas->addToAtlas(resourceProvider, target, kPlotSize, kPlotSize, in fill_plot()
149 std::unique_ptr<GrDrawOpAtlas> atlas = GrDrawOpAtlas::Make( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
161 check(reporter, atlas.get(), 0, 4, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
167 atlas.get(), resourceProvider, &uploadTarget, &atlasLocators[i], i * 32); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
169 check(reporter, atlas in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all...]
H A DLazyProxyTest.cpp136 GrTextureProxy* atlas) in ClipFP()
141 , fAtlas(atlas) { in ClipFP()
183 Clip(LazyProxyTest* test, GrTextureProxy* atlas) in Clip() argument
185 , fAtlas(atlas) {} in Clip()
135 ClipFP(GrRecordingContext* ctx, GrProxyProvider* proxyProvider, LazyProxyTest* test, GrTextureProxy* atlas) ClipFP() argument
/third_party/skia/third_party/externals/imgui/
H A Dimgui_draw.cpp2033 // Build atlas on demand in GetTexDataAsAlpha8()
2226 IM_ASSERT(TexWidth > 0 && TexHeight > 0); // Font atlas needs to be built before we can calculate UV coordinates in CalcCustomRectUV()
2262 // - Note that we do not reassign to atlas->FontBuilderIO, since it is likely to point to static data which in Build()
2309 int DstIndex; // Index into atlas->Fonts[] and dst_tmp_array[]
2337 static bool ImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas) in ImFontAtlasBuildWithStbTruetype() argument
2339 IM_ASSERT(atlas->ConfigData.Size > 0); in ImFontAtlasBuildWithStbTruetype()
2341 ImFontAtlasBuildInit(atlas); in ImFontAtlasBuildWithStbTruetype()
2343 // Clear atlas in ImFontAtlasBuildWithStbTruetype()
2344 atlas->TexID = (ImTextureID)NULL; in ImFontAtlasBuildWithStbTruetype()
2345 atlas in ImFontAtlasBuildWithStbTruetype()
2598 ImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* font_config, float ascent, float descent) ImFontAtlasBuildSetupFont() argument
2613 ImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opaque) ImFontAtlasBuildPackCustomRects() argument
2640 ImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned char in_marker_pixel_value) ImFontAtlasBuildRender8bppRectFromString() argument
2650 ImFontAtlasBuildRender32bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned int in_marker_pixel_value) ImFontAtlasBuildRender32bppRectFromString() argument
2660 ImFontAtlasBuildRenderDefaultTexData(ImFontAtlas* atlas) ImFontAtlasBuildRenderDefaultTexData() argument
2700 ImFontAtlasBuildRenderLinesTexData(ImFontAtlas* atlas) ImFontAtlasBuildRenderLinesTexData() argument
2752 ImFontAtlasBuildInit(ImFontAtlas* atlas) ImFontAtlasBuildInit() argument
2773 ImFontAtlasBuildFinish(ImFontAtlas* atlas) ImFontAtlasBuildFinish() argument
[all...]
/third_party/glfw/deps/
H A Dnuklear_glfw_gl2.h23 NK_API void nk_glfw3_font_stash_begin(struct nk_font_atlas **atlas);
72 struct nk_font_atlas atlas; member
276 nk_glfw3_font_stash_begin(struct nk_font_atlas **atlas) in nk_glfw3_font_stash_begin() argument
278 nk_font_atlas_init_default(&glfw.atlas); in nk_glfw3_font_stash_begin()
279 nk_font_atlas_begin(&glfw.atlas); in nk_glfw3_font_stash_begin()
280 *atlas = &glfw.atlas; in nk_glfw3_font_stash_begin()
287 image = nk_font_atlas_bake(&glfw.atlas, &w, &h, NK_FONT_ATLAS_RGBA32); in nk_glfw3_font_stash_end()
289 nk_font_atlas_end(&glfw.atlas, nk_handle_id((int)glfw.ogl.font_tex), &glfw.ogl.null); in nk_glfw3_font_stash_end()
290 if (glfw.atlas in nk_glfw3_font_stash_end()
[all...]
H A Dnuklear.h104 /// NK_INCLUDE_DEFAULT_FONT | Defining this adds the default font: ProggyClean.ttf into this library which can be loaded into a font atlas and allows using this library without having a truetype font
3754 different ways to use the font atlas. The first two will use your font
3791 `nk_user_font`. First a texture atlas handle used to draw text as subimages
3792 of a bigger font atlas texture and a callback to query a character's glyph
3830 The font baker APIs can be used to create a font plus font atlas texture
3848 inside the font atlas and allows to reuse the font atlas. If you don't want to reuse
3857 will free all temporary memory including the font atlas image so make sure
3863 At this point you are done and if you don't want to reuse the font atlas you
3865 memory. Finally if you don't use the font atlas an
13095 nk_font_init(struct nk_font *font, float pixel_height, nk_rune fallback_codepoint, struct nk_font_glyph *glyphs, const struct nk_baked_font *baked_font, nk_handle atlas) nk_font_init() argument
13442 nk_font_atlas_init_default(struct nk_font_atlas *atlas) nk_font_atlas_init_default() argument
13456 nk_font_atlas_init(struct nk_font_atlas *atlas, struct nk_allocator *alloc) nk_font_atlas_init() argument
13466 nk_font_atlas_init_custom(struct nk_font_atlas *atlas, struct nk_allocator *permanent, struct nk_allocator *temporary) nk_font_atlas_init_custom() argument
13478 nk_font_atlas_begin(struct nk_font_atlas *atlas) nk_font_atlas_begin() argument
13495 nk_font_atlas_add(struct nk_font_atlas *atlas, const struct nk_font_config *config) nk_font_atlas_add() argument
13582 nk_font_atlas_add_from_memory(struct nk_font_atlas *atlas, void *memory, nk_size size, float height, const struct nk_font_config *config) nk_font_atlas_add_from_memory() argument
13607 nk_font_atlas_add_from_file(struct nk_font_atlas *atlas, const char *file_path, float height, const struct nk_font_config *config) nk_font_atlas_add_from_file() argument
13633 nk_font_atlas_add_compressed(struct nk_font_atlas *atlas, void *compressed_data, nk_size compressed_size, float height, const struct nk_font_config *config) nk_font_atlas_add_compressed() argument
13668 nk_font_atlas_add_compressed_base85(struct nk_font_atlas *atlas, const char *data_base85, float height, const struct nk_font_config *config) nk_font_atlas_add_compressed_base85() argument
13699 nk_font_atlas_add_default(struct nk_font_atlas *atlas, float pixel_height, const struct nk_font_config *config) nk_font_atlas_add_default() argument
13712 nk_font_atlas_bake(struct nk_font_atlas *atlas, int *width, int *height, enum nk_font_atlas_format fmt) nk_font_atlas_bake() argument
13836 nk_font_atlas_end(struct nk_font_atlas *atlas, nk_handle texture, struct nk_draw_null_texture *null) nk_font_atlas_end() argument
13871 nk_font_atlas_cleanup(struct nk_font_atlas *atlas) nk_font_atlas_cleanup() argument
13893 nk_font_atlas_clear(struct nk_font_atlas *atlas) nk_font_atlas_clear() argument
[all...]
/third_party/mesa3d/src/imgui/
H A Dimgui_draw.cpp1506 // Build atlas on demand in GetTexDataAsAlpha8()
1697 IM_ASSERT(TexWidth > 0 && TexHeight > 0); // Font atlas needs to be built before we can calculate UV coordinates in CalcCustomRectUV()
1757 int DstIndex; // Index into atlas->Fonts[] and dst_tmp_array[]
1785 bool ImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas) in ImFontAtlasBuildWithStbTruetype() argument
1787 IM_ASSERT(atlas->ConfigData.Size > 0); in ImFontAtlasBuildWithStbTruetype()
1789 ImFontAtlasBuildRegisterDefaultCustomRects(atlas); in ImFontAtlasBuildWithStbTruetype()
1791 // Clear atlas in ImFontAtlasBuildWithStbTruetype()
1792 atlas->TexID = (ImTextureID)NULL; in ImFontAtlasBuildWithStbTruetype()
1793 atlas->TexWidth = atlas in ImFontAtlasBuildWithStbTruetype()
2043 ImFontAtlasBuildRegisterDefaultCustomRects(ImFontAtlas* atlas) ImFontAtlasBuildRegisterDefaultCustomRects() argument
2053 ImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* font_config, float ascent, float descent) ImFontAtlasBuildSetupFont() argument
2067 ImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opaque) ImFontAtlasBuildPackCustomRects() argument
2094 ImFontAtlasBuildRenderDefaultTexData(ImFontAtlas* atlas) ImFontAtlasBuildRenderDefaultTexData() argument
2125 ImFontAtlasBuildFinish(ImFontAtlas* atlas) ImFontAtlasBuildFinish() argument
[all...]
/third_party/skia/tools/viewer/
H A DImGuiLayer.cpp25 static void build_ImFontAtlas(ImFontAtlas& atlas, SkPaint& fontPaint) { in build_ImFontAtlas() argument
28 atlas.GetTexDataAsAlpha8(&pixels, &w, &h); in build_ImFontAtlas()
36 atlas.TexID = &fontPaint; in build_ImFontAtlas()
75 ImFontAtlas& atlas = *ImGui::GetIO().Fonts; in setScaleFactor() local
76 atlas.Clear(); in setScaleFactor()
79 atlas.AddFontDefault(&cfg)->DisplayOffset.y = scaleFactor; in setScaleFactor()
80 build_ImFontAtlas(atlas, fFontPaint); in setScaleFactor()
/third_party/skia/samplecode/
H A DSampleShip.cpp26 static void draw_atlas(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas() argument
29 canvas->drawAtlas(atlas, xform, tex, colors, count, SkBlendMode::kModulate, sampling, in draw_atlas()
33 static void draw_atlas_sim(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas_sim() argument
42 canvas->drawImageRect(atlas, tex[i], tex[i].makeOffset(-tex[i].x(), -tex[i].y()), in draw_atlas_sim()
H A DSampleAtlas.cpp22 static void draw_atlas(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas() argument
25 canvas->drawAtlas(atlas, xform, tex, colors, count, SkBlendMode::kModulate, in draw_atlas()
29 static void draw_atlas_sim(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas_sim() argument
38 canvas->drawImageRect(atlas, tex[i], tex[i].makeOffset(-tex[i].x(), -tex[i].y()), in draw_atlas_sim()
/third_party/skia/gm/
H A Druntimecolorfilter.cpp128 auto atlas = surf->makeImageSnapshot(); in DEF_SIMPLE_GM() local
153 paint.setShader(useShader ? atlas->makeShader(SkSamplingOptions{}) : nullptr); in DEF_SIMPLE_GM()
170 canvas->drawAtlas(atlas.get(), in DEF_SIMPLE_GM()
H A Ddrawatlascolor.cpp27 // Create a square atlas of:
66 // and transparency in the atlas image
75 return SkString("draw-atlas-colors");
86 auto atlas = make_atlas(canvas, kAtlasSize); variable
157 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors,
161 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors,
H A Ddrawatlas.cpp50 // that drawAtlas draws a subset-region of the atlas. in MakeAtlas()
72 return SkString("draw-atlas");
81 auto atlas = MakeAtlas(canvas, target); variable
118 canvas->drawAtlas(atlas.get(), xform, tex, nullptr, N, SkBlendMode::kDst,
121 canvas->drawAtlas(atlas.get(), xform, tex, colors, N, SkBlendMode::kSrcIn,
318 * This GM produces a series of pairs of images (atlas | vertices).
/third_party/glfw/tests/
H A Dgamma.c94 struct nk_font_atlas* atlas; in main() local
137 nk_glfw3_font_stash_begin(&atlas); in main()
H A Dinputlag.c163 struct nk_font_atlas* atlas; in main() local
222 nk_glfw3_font_stash_begin(&atlas); in main()
H A Djoysticks.c176 struct nk_font_atlas* atlas; in main() local
200 nk_glfw3_font_stash_begin(&atlas); in main()
H A Dwindow.c110 struct nk_font_atlas* atlas; in main() local
111 nk_glfw3_font_stash_begin(&atlas); in main()
/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_cb_bitmap.h53 const struct gl_bitmap_atlas *atlas,
H A Dst_cb_bitmap.c171 bool atlas) in setup_render_state()
235 if (atlas) in setup_render_state()
648 const struct gl_bitmap_atlas *atlas, in st_DrawAtlasBitmaps()
653 struct gl_texture_object *stObj = atlas->texObj; in st_DrawAtlasBitmaps()
696 const struct gl_bitmap_glyph *g = &atlas->glyphs[ids[i]]; in st_DrawAtlasBitmaps()
168 setup_render_state(struct gl_context *ctx, struct pipe_sampler_view *sv, const GLfloat *color, bool atlas) setup_render_state() argument
647 st_DrawAtlasBitmaps(struct gl_context *ctx, const struct gl_bitmap_atlas *atlas, GLuint count, const GLubyte *ids) st_DrawAtlasBitmaps() argument
/third_party/mesa3d/src/mesa/main/
H A Ddlist.h73 * Describes the location and size of a glBitmap image in a texture atlas.
84 * Describes a set of glBitmap display lists which live in a texture atlas.
93 bool complete; /**< Is the atlas ready to use? */
94 bool incomplete; /**< Did we fail to construct this atlas? */
108 struct gl_bitmap_atlas *atlas);
H A Ddlist.c836 _mesa_delete_bitmap_atlas(struct gl_context *ctx, struct gl_bitmap_atlas *atlas) in _mesa_delete_bitmap_atlas() argument
838 if (atlas->texObj) { in _mesa_delete_bitmap_atlas()
839 _mesa_delete_texture_object(ctx, atlas->texObj); in _mesa_delete_bitmap_atlas()
841 free(atlas->glyphs); in _mesa_delete_bitmap_atlas()
842 free(atlas); in _mesa_delete_bitmap_atlas()
852 struct gl_bitmap_atlas *atlas; in lookup_bitmap_atlas() local
855 atlas = _mesa_HashLookup(ctx->Shared->BitmapAtlas, listBase); in lookup_bitmap_atlas()
856 return atlas; in lookup_bitmap_atlas()
861 * Create new bitmap atlas and insert into hash table.
866 struct gl_bitmap_atlas *atlas; in alloc_bitmap_atlas() local
889 build_bitmap_atlas(struct gl_context *ctx, struct gl_bitmap_atlas *atlas, GLuint listBase) build_bitmap_atlas() argument
1364 struct gl_bitmap_atlas *atlas = (struct gl_bitmap_atlas *) data; check_atlas_for_deleted_list() local
13395 struct gl_bitmap_atlas *atlas = lookup_bitmap_atlas(ctx, list); _mesa_DeleteLists() local
13451 struct gl_bitmap_atlas *atlas = lookup_bitmap_atlas(ctx, base); _mesa_GenLists() local
13786 struct gl_bitmap_atlas *atlas; render_bitmap_atlas() local
[all...]
H A Dshared.c162 * Callback for deleting a bitmap atlas. Called by _mesa_HashDeleteAll().
167 struct gl_bitmap_atlas *atlas = (struct gl_bitmap_atlas *) data; in delete_bitmap_atlas_cb() local
169 _mesa_delete_bitmap_atlas(ctx, atlas); in delete_bitmap_atlas_cb()
/third_party/skia/src/gpu/
H A DGrDrawOpAtlas.cpp46 // atlases. Extending the usage interval of any op that uses an atlas to the start of the
48 // the atlas persists even beyond the last use in an op - for a given flush. Given this, atlases
53 // All the atlas pages are now instantiated at flush time in the activeNewPage method. in instantiate()
72 std::unique_ptr<GrDrawOpAtlas> atlas(new GrDrawOpAtlas(proxyProvider, format, colorType, in Make()
79 if (!atlas->getViews()[0].proxy()) { in Make()
84 atlas->fEvictionCallbacks.emplace_back(evictor); in Make()
86 return atlas; in Make()
305 // Number of atlas-related flushes beyond which we consider a plot to no longer be in use.
489 // We only try to compact if the atlas was used in the recently completed flush or in compact()
508 // We only increment the 'sinceLastUsed' count for flushes where the atlas wa in compact()
[all...]
/third_party/skia/src/core/
H A DSkRecorder.cpp268 void SkRecorder::onDrawAtlas2(const SkImage* atlas, const SkRSXform xform[], const SkRect tex[], in onDrawAtlas2() argument
273 sk_ref_sp(atlas), in onDrawAtlas2()

Completed in 57 milliseconds

12