def show_vertex_decl(decl): ImGui.Columns(2) ImGui.Text("Semantic") ImGui.NextColumn() ImGui.Text("Type") ImGui.NextColumn() ImGui.Separator() for e in decl.getElements(): ImGui.Text(VES2STR[e.getSemantic()]) ImGui.NextColumn() ImGui.Text(VET2STR[e.getType()]) ImGui.NextColumn() ImGui.Columns(1)
def show_vertex_decl(decl): OgreOverlay.Columns(2) OgreOverlay.Text("Semantic") OgreOverlay.NextColumn() OgreOverlay.Text("Type") OgreOverlay.NextColumn() OgreOverlay.Separator() for e in decl.getElements(): OgreOverlay.Text(VES2STR[e.getSemantic()]) OgreOverlay.NextColumn() try: OgreOverlay.Text(VET2STR[e.getType()]) except IndexError: OgreOverlay.Text("TODO") OgreOverlay.NextColumn() OgreOverlay.Columns(1)