MCPcopy Create free account
hub / github.com/defold/defold / GetSampleFramesArea

Function GetSampleFramesArea

engine/profiler/src/profiler_render.cpp:442–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440 }
441
442 static Area GetSampleFramesArea(DisplayMode display_mode, int sample_frames_name_width, const Area& samples_area, const Area& properties_area)
443 {
444 const int offset_y = LINE_SPACING;
445 const int offset_x = sample_frames_name_width + CHARACTER_WIDTH + SAMPLE_FRAMES_TIME_WIDTH + CHARACTER_WIDTH + SAMPLE_FRAMES_COUNT_WIDTH + CHARACTER_WIDTH;
446
447 Position p(samples_area.p.x + offset_x, samples_area.p.y);
448 Size s(samples_area.s.w - offset_x - properties_area.s.w - CHARACTER_WIDTH, samples_area.s.h - offset_y);
449
450 return Area(p, s);
451 }
452
453 static void FillArea(dmRender::HRenderContext render_context, const Area& a, const Vector4& col)
454 {

Callers 1

DrawFunction · 0.85

Calls 1

AreaClass · 0.85

Tested by

no test coverage detected