This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (ImGui::CollapsingHeader("Horizontal Layout")) | |
| { | |
| // Text | |
| ImGui::Text("Hello"); | |
| ImGui::SameLine(); | |
| ImGui::Text("World"); | |
| // Button | |
| if (ImGui::Button("Banana")) printf("Pressed!\n"); | |
| ImGui::SameLine(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void ProgramGL::bindAttributes(const VertexDecl& _vertexDecl, uint32_t _baseVertex) const | |
| { | |
| for (uint32_t ii = 0; ii < 15; ++ii) | |
| GL_CHECK(glDisableVertexAttribArray(ii) ); | |
| for (uint32_t ii = 0; Attrib::Count != m_used[ii]; ++ii) | |
| { | |
| Attrib::Enum attr = Attrib::Enum(m_used[ii]); | |
| GLint loc = m_attributes[attr]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright 2011-2015 Branimir Karadzic. All rights reserved. | |
| * License: http://www.opensource.org/licenses/BSD-2-Clause | |
| */ | |
| #include "common.h" | |
| #include "bgfx_utils.h" | |
| struct PosColorVertex | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright 2011-2015 Branimir Karadzic. All rights reserved. | |
| * License: http://www.opensource.org/licenses/BSD-2-Clause | |
| */ | |
| #include "common.h" | |
| #include "bgfx_utils.h" | |
| struct PosColorVertex | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright 2011-2015 Branimir Karadzic. All rights reserved. | |
| * License: http://www.opensource.org/licenses/BSD-2-Clause | |
| */ | |
| #include "common.h" | |
| #include "bgfx_utils.h" | |
| struct PosColorVertex | |
| { |
NewerOlder