Use mjrf functions from within other mjrf functions.
PiperOrigin-RevId: 892234323 Change-Id: I70ff01121764b552da84bdcc9b01527ae138dfea
This commit is contained in:
committed by
Copybara-Service
parent
ab7b78caa9
commit
bcaa0a8e6a
@@ -58,7 +58,7 @@ void mjrf_defaultContext(mjrContext* con) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void mjrf_makeContext(const mjModel* m, mjrContext* con, int fontscale) {
|
void mjrf_makeContext(const mjModel* m, mjrContext* con, int fontscale) {
|
||||||
mjr_freeContext(con);
|
mjrf_freeContext(con);
|
||||||
mjrFilamentConfig cfg;
|
mjrFilamentConfig cfg;
|
||||||
mjrf_defaultFilamentConfig(&cfg);
|
mjrf_defaultFilamentConfig(&cfg);
|
||||||
cfg.width = m->vis.global.offwidth;
|
cfg.width = m->vis.global.offwidth;
|
||||||
@@ -72,7 +72,7 @@ void mjrf_freeContext(mjrContext* con) {
|
|||||||
delete g_filament_context;
|
delete g_filament_context;
|
||||||
g_filament_context = nullptr;
|
g_filament_context = nullptr;
|
||||||
}
|
}
|
||||||
mjr_defaultContext(con);
|
mjrf_defaultContext(con);
|
||||||
}
|
}
|
||||||
|
|
||||||
void mjrf_render(mjrRect viewport, mjvScene* scn, const mjrContext* con) {
|
void mjrf_render(mjrRect viewport, mjvScene* scn, const mjrContext* con) {
|
||||||
|
|||||||
Reference in New Issue
Block a user