Skip to content

Commit

Permalink
[clang-format] Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alemuntoni authored and actions-user committed Jan 11, 2025
1 parent 3334d01 commit b1c0ee2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 23 deletions.
6 changes: 1 addition & 5 deletions vclib/render/include/vclib/bgfx/canvas.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,7 @@ class CanvasBGFX : public virtual vcl::EventManagerI
bool mStatsEnabled = false;

public:
CanvasBGFX(
void* winId,
uint width,
uint height,
void* displayId = nullptr);
CanvasBGFX(void* winId, uint width, uint height, void* displayId = nullptr);

~CanvasBGFX();

Expand Down
20 changes: 10 additions & 10 deletions vclib/render/include/vclib/bgfx/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,23 +142,23 @@ class Context
bgfx::ViewId view,
uint16_t width,
uint16_t height,
bool clear = false,
uint32_t clearColor = DEFAULT_CLEAR_COLOR,
float clearDepth = DEFAULT_CLEAR_DEPTH,
bool clear = false,
uint32_t clearColor = DEFAULT_CLEAR_COLOR,
float clearDepth = DEFAULT_CLEAR_DEPTH,
uint8_t clearStencil = DEFAULT_CLEAR_STENCIL,
bgfx::TextureFormat::Enum colorFormat = DEFAULT_COLOR_FORMAT,
bgfx::TextureFormat::Enum depthFormat = DEFAULT_DEPTH_FORMAT);
bgfx::TextureFormat::Enum colorFormat = DEFAULT_COLOR_FORMAT,
bgfx::TextureFormat::Enum depthFormat = DEFAULT_DEPTH_FORMAT);

bgfx::FrameBufferHandle createOffscreenFramebufferAndInitView(
bgfx::ViewId view,
uint16_t width,
uint16_t height,
bool clear = false,
uint32_t clearColor = DEFAULT_CLEAR_COLOR,
float clearDepth = DEFAULT_CLEAR_DEPTH,
bool clear = false,
uint32_t clearColor = DEFAULT_CLEAR_COLOR,
float clearDepth = DEFAULT_CLEAR_DEPTH,
uint8_t clearStencil = DEFAULT_CLEAR_STENCIL,
bgfx::TextureFormat::Enum colorFormat = DEFAULT_COLOR_FORMAT,
bgfx::TextureFormat::Enum depthFormat = DEFAULT_DEPTH_FORMAT);
bgfx::TextureFormat::Enum colorFormat = DEFAULT_COLOR_FORMAT,
bgfx::TextureFormat::Enum depthFormat = DEFAULT_DEPTH_FORMAT);

FontManager& fontManager();

Expand Down
6 changes: 1 addition & 5 deletions vclib/render/src/vclib/bgfx/canvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@

namespace vcl {

CanvasBGFX::CanvasBGFX(
void* winId,
uint width,
uint height,
void* displayId) :
CanvasBGFX::CanvasBGFX(void* winId, uint width, uint height, void* displayId) :
mWinId(winId)
{
// on screen framebuffer
Expand Down
2 changes: 1 addition & 1 deletion vclib/render/src/vclib/bgfx/read_framebuffer_request.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ ReadFramebufferRequest::ReadFramebufferRequest(
Point2i queryDepthPoint,
Point2<uint> framebufferSize,
CallbackReadBuffer callback,
const Color& clearColor) :
const Color& clearColor) :
type(DEPTH), point(queryDepthPoint), readCallback(callback)
{
blitSize = getBlitDepthSize(framebufferSize);
Expand Down
3 changes: 1 addition & 2 deletions vclib/render/src/vclib/bgfx/viewer_canvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ ViewerCanvasBGFX::ViewerCanvasBGFX(
uint width,
uint height,
void* displayId) :
CanvasBGFX(winId, width, height, displayId),
ViewerI(width, height)
CanvasBGFX(winId, width, height, displayId), ViewerI(width, height)
{
CanvasBGFX::setDefaultClearColor(Color::White);
mCameraUniforms.updateCamera(DTB::camera());
Expand Down

0 comments on commit b1c0ee2

Please sign in to comment.