Cogs.Core
CommandGroupAnnotation.h
1#pragma once
2
3#include "IContext.h"
4
5namespace Cogs
6{
7 class StringView;
8
13 {
14 CommandGroupAnnotation(IContext * context, const StringView & name)
15 : context(context)
16 {
17 context->pushCommandGroupAnnotation(name);
18 }
19
21 {
23 }
24
25 IContext* context;
26 };
27}
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
Contains all Cogs related functionality.
Definition: FieldSetter.h:23
RAII-helper for pushCommandGroupAnnotation/pushCommandGroupAnnotation.
Represents a graphics device context which can receive rendering commands.
Definition: IContext.h:43
virtual void popCommandGroupAnnotation()
End to tag a sequence of commands as a group in graphics debugger.
Definition: IContext.h:67
virtual void pushCommandGroupAnnotation(const StringView &name)
Begin to tag a sequence of commands as a group in graphics debugger.
Definition: IContext.h:62