Skip to content

Commit

Permalink
Updated README.md document and minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBanana committed Aug 2, 2023
1 parent 7316574 commit ffd25a5
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@

## Documentation

- **NOTE:** *This repository receives bug fixes only, but no major updates. Pull requests may still be accepted.*
- **Version**: 0.03 Beta (see [ChangeLog](docu/ChangeLog))
- [Getting Started with LLGL](docu/GettingStarted/Getting%20Started%20with%20LLGL.pdf) (PDF)
with Introduction, Hello Triangle Tutorial, and Extensibility Example with [GLFW](http://www.glfw.org/)
- [LLGL Reference Manual](docu/refman.pdf) (PDF)
- [LLGL Coding Conventions](docu/CodingConventions/Coding%20Conventions%20for%20LLGL.pdf) (PDF)
- [Examples and Tutorials for C++](examples/Cpp)
- [Examples for C99](examples/C99)
- [Examples for C#](examples/CSharp)


Expand Down Expand Up @@ -80,7 +80,9 @@ CommandBuffer::DrawIndexed(std::uint32_t numIndices, std::uint32_t firstIndex);

// OpenGL Implementation:
void GLImmediateCommandBuffer::DrawIndexed(std::uint32_t numIndices, std::uint32_t firstIndex) {
glDrawElements(GetDrawMode(), static_cast<GLsizei>(numIndices), GetIndexType(), GetIndicesOffset(firstIndex));
glDrawElements(
GetDrawMode(), static_cast<GLsizei>(numIndices), GetIndexType(), GetIndicesOffset(firstIndex)
);
}

// Direct3D 11 Implementation
Expand Down
3 changes: 3 additions & 0 deletions include/LLGL/ResourceFlags.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ enum class ResourceType
Sampler,
};


/* ----- Flags ----- */

/**
\brief Flags for Buffer and Texture resources that describe for which purposes they will be used.
\remarks Resources can be created with both input and output binding flags, but they cannot be used together when the resource is bound. See the following table for compatibility:
Expand Down
2 changes: 1 addition & 1 deletion include/LLGL/ResourceHeapFlags.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace LLGL
class PipelineLayout;


/* ----- Enumerations ----- */
/* ----- Flags ----- */

/**
\brief Flags for memory barriers in resource heaps.
Expand Down
1 change: 0 additions & 1 deletion include/LLGL/ShaderReflection.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@


#include <LLGL/ForwardDecls.h>
#include <LLGL/ShaderFlags.h>
#include <LLGL/ResourceFlags.h>
#include <LLGL/BufferFlags.h>
#include <LLGL/PipelineLayoutFlags.h>
Expand Down
4 changes: 2 additions & 2 deletions sources/Renderer/OpenGL/Texture/GLTextureViewPool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace LLGL
{


static const std::size_t g_maxNumReusableTextureViews = 16;
static constexpr std::size_t g_maxNumReusableTextureViews = 16;

GLTextureViewPool::~GLTextureViewPool()
{
Expand Down Expand Up @@ -97,7 +97,7 @@ void GLTextureViewPool::ReleaseTextureView(GLuint texID)
{
/* Try to find texture by GL texture ID only */
std::size_t insertionIndex = 0;
auto* sharedTexView = FindInSortedArray<GLTextureView>(
GLTextureView* sharedTexView = FindInSortedArray<GLTextureView>(
textureViews_.data(),
textureViews_.size(),
[texID](const GLTextureView& rhs)
Expand Down
2 changes: 2 additions & 0 deletions tests/Testbed/TestbedContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ class TestbedContext

#undef DECL_TEST

private:

bool LoadShaders();
void LoadProjectionMatrix(float nearPlane = 0.1f, float farPlane = 100.0f, float fov = 45.0f);

Expand Down

0 comments on commit ffd25a5

Please sign in to comment.