mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Fixed tabs/spaces
This commit is contained in:
committed by
Бранимир Караџић
parent
3f647f1ca1
commit
33ac8934ff
@@ -62,8 +62,8 @@ static const uint16_t s_cubeIndices[36] =
|
||||
class ExampleInstancing : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleInstancing(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleInstancing(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -262,8 +262,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleInstancing
|
||||
, "05-instancing"
|
||||
, "Geometry instancing."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#instancing"
|
||||
);
|
||||
ExampleInstancing
|
||||
, "05-instancing"
|
||||
, "Geometry instancing."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#instancing"
|
||||
);
|
||||
|
||||
@@ -37,8 +37,8 @@ TrueTypeHandle loadTtf(FontManager* _fm, const char* _filePath)
|
||||
class ExampleFontSDF : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleFontSDF(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleFontSDF(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -283,8 +283,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleFontSDF
|
||||
, "11-fontsdf"
|
||||
, "Use a single distance field font to render text of various size."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#fontsdf"
|
||||
);
|
||||
ExampleFontSDF
|
||||
, "11-fontsdf"
|
||||
, "Use a single distance field font to render text of various size."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#fontsdf"
|
||||
);
|
||||
|
||||
@@ -29,8 +29,8 @@ static const KnightPos knightTour[8*4] =
|
||||
class ExampleLod : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleLod(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleLod(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -312,8 +312,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleLod
|
||||
, "12-lod"
|
||||
, "Mesh LOD transitions."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#lod"
|
||||
);
|
||||
ExampleLod
|
||||
, "12-lod"
|
||||
, "Mesh LOD transitions."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#lod"
|
||||
);
|
||||
|
||||
@@ -789,8 +789,8 @@ struct Mesh
|
||||
class ExampleStencil : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleStencil(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleStencil(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1403,8 +1403,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleStencil
|
||||
, "13-stencil"
|
||||
, "Stencil reflections and shadows."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#stencil"
|
||||
);
|
||||
ExampleStencil
|
||||
, "13-stencil"
|
||||
, "Stencil reflections and shadows."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#stencil"
|
||||
);
|
||||
|
||||
@@ -978,12 +978,12 @@ struct Mesh
|
||||
|
||||
const bgfx::Memory* mem = bgfx::makeRef(group.m_vertices, vertexSize);
|
||||
group.m_vbh = bgfx::createVertexBuffer(mem, m_layout);
|
||||
|
||||
|
||||
group.m_numIndices = it->m_numIndices;
|
||||
const uint32_t indexSize = 2 * group.m_numIndices;
|
||||
group.m_indices = (uint16_t*)malloc(indexSize);
|
||||
bx::memCopy(group.m_indices, it->m_indices, indexSize);
|
||||
|
||||
|
||||
mem = bgfx::makeRef(group.m_indices, indexSize);
|
||||
group.m_ibh = bgfx::createIndexBuffer(mem);
|
||||
|
||||
@@ -991,7 +991,7 @@ struct Mesh
|
||||
group.m_aabb = it->m_aabb;
|
||||
group.m_obb = it->m_obb;
|
||||
group.m_prims = it->m_prims;
|
||||
|
||||
|
||||
m_groups.push_back(group);
|
||||
}
|
||||
::meshUnload(mesh);
|
||||
@@ -1760,8 +1760,8 @@ enum Scene
|
||||
class ExampleShadowVolumes : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleShadowVolumes(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleShadowVolumes(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -2835,7 +2835,7 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleShadowVolumes
|
||||
, "14-shadowvolumes"
|
||||
, "Shadow volumes."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#shadowvolumes");
|
||||
ExampleShadowVolumes
|
||||
, "14-shadowvolumes"
|
||||
, "Shadow volumes."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#shadowvolumes");
|
||||
|
||||
@@ -61,8 +61,8 @@ static const uint16_t s_planeIndices[] =
|
||||
class ExampleShadowmapsSimple : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleShadowmapsSimple(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleShadowmapsSimple(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -506,8 +506,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleShadowmapsSimple
|
||||
, "15-shadowmaps-simple"
|
||||
, "Shadow maps example"
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#shadowmaps-simple"
|
||||
);
|
||||
ExampleShadowmapsSimple
|
||||
, "15-shadowmaps-simple"
|
||||
, "Shadow maps example"
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#shadowmaps-simple"
|
||||
);
|
||||
|
||||
@@ -1284,8 +1284,8 @@ struct SceneSettings
|
||||
class ExampleShadowmaps : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleShadowmaps(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleShadowmaps(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -2311,17 +2311,17 @@ public:
|
||||
, 0.0f
|
||||
, caps->homogeneousDepth
|
||||
);
|
||||
|
||||
|
||||
// Update render target size.
|
||||
uint16_t shadowMapSize = 1 << uint32_t(currentSmSettings->m_sizePwrTwo);
|
||||
if (bLtChanged || m_currentShadowMapSize != shadowMapSize)
|
||||
{
|
||||
m_currentShadowMapSize = shadowMapSize;
|
||||
s_uniforms.m_shadowMapTexelSize = 1.0f / currentShadowMapSizef;
|
||||
|
||||
|
||||
{
|
||||
bgfx::destroy(s_rtShadowMap[0]);
|
||||
|
||||
|
||||
bgfx::TextureHandle fbtextures[] =
|
||||
{
|
||||
bgfx::createTexture2D(m_currentShadowMapSize, m_currentShadowMapSize, false, 1, bgfx::TextureFormat::BGRA8, BGFX_TEXTURE_RT),
|
||||
@@ -2329,14 +2329,14 @@ public:
|
||||
};
|
||||
s_rtShadowMap[0] = bgfx::createFrameBuffer(BX_COUNTOF(fbtextures), fbtextures, true);
|
||||
}
|
||||
|
||||
|
||||
if (LightType::DirectionalLight == m_settings.m_lightType)
|
||||
{
|
||||
for (uint8_t ii = 1; ii < ShadowMapRenderTargets::Count; ++ii)
|
||||
{
|
||||
{
|
||||
bgfx::destroy(s_rtShadowMap[ii]);
|
||||
|
||||
|
||||
bgfx::TextureHandle fbtextures[] =
|
||||
{
|
||||
bgfx::createTexture2D(m_currentShadowMapSize, m_currentShadowMapSize, false, 1, bgfx::TextureFormat::BGRA8, BGFX_TEXTURE_RT),
|
||||
@@ -2346,7 +2346,7 @@ public:
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bgfx::destroy(s_rtBlur);
|
||||
s_rtBlur = bgfx::createFrameBuffer(m_currentShadowMapSize, m_currentShadowMapSize, bgfx::TextureFormat::BGRA8);
|
||||
}
|
||||
@@ -3252,8 +3252,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleShadowmaps
|
||||
, "16-shadowmaps"
|
||||
, "Shadow maps example."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#shadowmaps"
|
||||
);
|
||||
ExampleShadowmaps
|
||||
, "16-shadowmaps"
|
||||
, "Shadow maps example."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#shadowmaps"
|
||||
);
|
||||
|
||||
@@ -100,8 +100,8 @@ int32_t threadFunc(bx::Thread* _thread, void* _userData);
|
||||
class ExampleDrawStress : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleDrawStress(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleDrawStress(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -460,8 +460,8 @@ int32_t threadFunc(bx::Thread* _thread, void* _userData)
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleDrawStress
|
||||
, "17-drawstress"
|
||||
, "Draw stress, maximizing number of draw calls."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#drawstress"
|
||||
);
|
||||
ExampleDrawStress
|
||||
, "17-drawstress"
|
||||
, "Draw stress, maximizing number of draw calls."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#drawstress"
|
||||
);
|
||||
|
||||
@@ -398,8 +398,8 @@ struct Settings
|
||||
class ExampleIbl : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleIbl(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleIbl(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -833,8 +833,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleIbl
|
||||
, "18-ibl"
|
||||
, "Image-based lighting."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#ibl"
|
||||
);
|
||||
ExampleIbl
|
||||
, "18-ibl"
|
||||
, "Image-based lighting."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#ibl"
|
||||
);
|
||||
|
||||
@@ -152,8 +152,8 @@ void screenSpaceQuad(float _textureWidth, float _textureHeight, bool _originBott
|
||||
class ExampleOIT : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleOIT(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleOIT(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -551,8 +551,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleOIT
|
||||
, "19-oit"
|
||||
, "Weighted, Blended Order Independent Transparency."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#oit"
|
||||
);
|
||||
ExampleOIT
|
||||
, "19-oit"
|
||||
, "Weighted, Blended Order Independent Transparency."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#oit"
|
||||
);
|
||||
|
||||
@@ -1385,8 +1385,8 @@ void renderDemo(struct NVGcontext* vg, float mx, float my, float width, float he
|
||||
class ExampleNanoVG : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleNanoVG(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleNanoVG(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1506,8 +1506,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleNanoVG
|
||||
, "20-nanovg"
|
||||
, "NanoVG is small antialiased vector graphics rendering library."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#nanovg"
|
||||
);
|
||||
ExampleNanoVG
|
||||
, "20-nanovg"
|
||||
, "NanoVG is small antialiased vector graphics rendering library."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#nanovg"
|
||||
);
|
||||
|
||||
@@ -193,8 +193,8 @@ void screenSpaceQuad(float _textureWidth, float _textureHeight, float _texelHalf
|
||||
class ExampleDeferred : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleDeferred(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleDeferred(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -896,8 +896,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleDeferred
|
||||
, "21-deferred"
|
||||
, "MRT rendering and deferred shading."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#deferred"
|
||||
);
|
||||
ExampleDeferred
|
||||
, "21-deferred"
|
||||
, "MRT rendering and deferred shading."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#deferred"
|
||||
);
|
||||
|
||||
@@ -69,8 +69,8 @@ static const uint16_t s_cubeIndices[36] =
|
||||
class ExampleWindows : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleWindows(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleWindows(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -379,11 +379,11 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleWindows
|
||||
, "22-windows"
|
||||
, "Rendering into multiple windows."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#windows"
|
||||
);
|
||||
ExampleWindows
|
||||
, "22-windows"
|
||||
, "Rendering into multiple windows."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#windows"
|
||||
);
|
||||
|
||||
void cmdCreateWindow(const void* _userData)
|
||||
{
|
||||
|
||||
@@ -37,8 +37,8 @@ bgfx::VertexLayout PosColorVertex::ms_layout;
|
||||
class ExampleVectorDisplay : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleVectorDisplay(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleVectorDisplay(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -219,8 +219,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleVectorDisplay
|
||||
, "23-vectordisplay"
|
||||
, "Rendering lines as oldschool vectors."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#vectordisplay"
|
||||
);
|
||||
ExampleVectorDisplay
|
||||
, "23-vectordisplay"
|
||||
, "Rendering lines as oldschool vectors."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#vectordisplay"
|
||||
);
|
||||
|
||||
@@ -113,8 +113,8 @@ const uint32_t kMaxParticleCount = 32 * 1024;
|
||||
class ExampleNbody : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleNbody(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleNbody(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -459,8 +459,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleNbody
|
||||
, "24-nbody"
|
||||
, "N-body simulation with compute shaders using buffers."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#nbody"
|
||||
);
|
||||
ExampleNbody
|
||||
, "24-nbody"
|
||||
, "N-body simulation with compute shaders using buffers."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#nbody"
|
||||
);
|
||||
|
||||
@@ -65,8 +65,8 @@ static const uint16_t s_cubeIndices[36] =
|
||||
class ExampleOcclusion : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleOcclusion(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleOcclusion(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -312,8 +312,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleOcclusion
|
||||
, "26-occlusion"
|
||||
, "Using occlusion query for conditional rendering."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#occlusion"
|
||||
);
|
||||
ExampleOcclusion
|
||||
, "26-occlusion"
|
||||
, "Using occlusion query for conditional rendering."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#occlusion"
|
||||
);
|
||||
|
||||
@@ -62,8 +62,8 @@ struct BrushData
|
||||
class ExampleTerrain : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleTerrain(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleTerrain(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -523,8 +523,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleTerrain
|
||||
, "27-terrain"
|
||||
, "Terrain painting example."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#terrain"
|
||||
);
|
||||
ExampleTerrain
|
||||
, "27-terrain"
|
||||
, "Terrain painting example."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#terrain"
|
||||
);
|
||||
|
||||
@@ -271,8 +271,8 @@ struct Uniforms
|
||||
class ExampleWireframe : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleWireframe(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleWireframe(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -522,8 +522,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleWireframe
|
||||
, "28-wirefame"
|
||||
, "Drawing wireframe mesh."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#wireframe"
|
||||
);
|
||||
ExampleWireframe
|
||||
, "28-wirefame"
|
||||
, "Drawing wireframe mesh."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#wireframe"
|
||||
);
|
||||
|
||||
@@ -21,8 +21,8 @@ namespace
|
||||
class ExamplePicking : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExamplePicking(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExamplePicking(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -443,8 +443,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExamplePicking
|
||||
, "30-picking"
|
||||
, "Mouse picking via GPU texture readback."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#picking"
|
||||
);
|
||||
ExamplePicking
|
||||
, "30-picking"
|
||||
, "Mouse picking via GPU texture readback."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#picking"
|
||||
);
|
||||
|
||||
@@ -186,8 +186,8 @@ void screenSpaceQuad(float _textureWidth, float _textureHeight, float _texelHalf
|
||||
class ExampleRSM : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleRSM(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleRSM(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
, m_reading(0)
|
||||
, m_currFrame(UINT32_MAX)
|
||||
, m_cameraSpin(false)
|
||||
@@ -759,8 +759,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleRSM
|
||||
, "31-rsm"
|
||||
, "Global Illumination with Reflective Shadow Map."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#rsm"
|
||||
);
|
||||
ExampleRSM
|
||||
, "31-rsm"
|
||||
, "Global Illumination with Reflective Shadow Map."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#rsm"
|
||||
);
|
||||
|
||||
@@ -229,8 +229,8 @@ struct Emitter
|
||||
class ExampleParticles : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleParticles(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleParticles(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -453,8 +453,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleParticles
|
||||
, "32-particles"
|
||||
, "Particles."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#particles"
|
||||
);
|
||||
ExampleParticles
|
||||
, "32-particles"
|
||||
, "Particles."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#particles"
|
||||
);
|
||||
|
||||
@@ -111,8 +111,8 @@ static const uint16_t s_cubeIndices[36] =
|
||||
class ExamplePom : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExamplePom(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExamplePom(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -386,8 +386,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExamplePom
|
||||
, "33-pom"
|
||||
, "Parallax mapping."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#pom"
|
||||
);
|
||||
ExamplePom
|
||||
, "33-pom"
|
||||
, "Parallax mapping."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#pom"
|
||||
);
|
||||
|
||||
@@ -105,8 +105,8 @@ static const uint16_t s_cubeTriStrip[] =
|
||||
class ExampleMvs : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleMvs(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleMvs(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -282,8 +282,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleMvs
|
||||
, "34-mvs"
|
||||
, "Multiple vertex streams."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#mvs"
|
||||
);
|
||||
ExampleMvs
|
||||
, "34-mvs"
|
||||
, "Multiple vertex streams."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#mvs"
|
||||
);
|
||||
|
||||
@@ -83,8 +83,8 @@ static const uint16_t s_cubeTriStrip[] =
|
||||
class ExampleDynamic : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleDynamic(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleDynamic(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -283,8 +283,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleDynamic
|
||||
, "35-dynamic"
|
||||
, "Dynamic buffers update."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#dynamic"
|
||||
);
|
||||
ExampleDynamic
|
||||
, "35-dynamic"
|
||||
, "Dynamic buffers update."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#dynamic"
|
||||
);
|
||||
|
||||
@@ -400,8 +400,8 @@ namespace
|
||||
class ExampleProceduralSky : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleProceduralSky(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleProceduralSky(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -662,8 +662,8 @@ namespace
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleProceduralSky
|
||||
, "36-sky"
|
||||
, "Perez dynamic sky model."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#sky"
|
||||
);
|
||||
ExampleProceduralSky
|
||||
, "36-sky"
|
||||
, "Perez dynamic sky model."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#sky"
|
||||
);
|
||||
|
||||
@@ -306,8 +306,8 @@ float rand01()
|
||||
class GPUDrivenRendering : public entry::AppI
|
||||
{
|
||||
public:
|
||||
GPUDrivenRendering(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
GPUDrivenRendering(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1144,8 +1144,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
GPUDrivenRendering
|
||||
, "37-gpudrivenrendering"
|
||||
, "GPU-Driven Rendering."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#gpudrivenrendering"
|
||||
);
|
||||
GPUDrivenRendering
|
||||
, "37-gpudrivenrendering"
|
||||
, "GPU-Driven Rendering."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#gpudrivenrendering"
|
||||
);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2018 Eric Arnebäck. All rights reserved.
|
||||
* Copyright 2018 Eric Arnebäck. All rights reserved.
|
||||
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
|
||||
*/
|
||||
|
||||
@@ -182,8 +182,8 @@ void screenSpaceQuad(float _textureWidth, float _textureHeight, float _texelHalf
|
||||
class ExampleDeferred : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleDeferred(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleDeferred(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -659,8 +659,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleDeferred
|
||||
, "38-bloom"
|
||||
, "Bloom."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#bloom"
|
||||
);
|
||||
ExampleDeferred
|
||||
, "38-bloom"
|
||||
, "Bloom."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#bloom"
|
||||
);
|
||||
|
||||
@@ -247,8 +247,8 @@ namespace
|
||||
class ExampleASSAO : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleASSAO(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleASSAO(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
, m_currFrame(UINT32_MAX)
|
||||
, m_enableSSAO(true)
|
||||
, m_enableTexturing(true)
|
||||
@@ -1201,10 +1201,10 @@ namespace
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleASSAO
|
||||
, "39-assao"
|
||||
, "Adaptive Screen Space Ambient Occlusion."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#assao"
|
||||
);
|
||||
ExampleASSAO
|
||||
, "39-assao"
|
||||
, "Adaptive Screen Space Ambient Occlusion."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#assao"
|
||||
);
|
||||
|
||||
|
||||
|
||||
@@ -64,8 +64,8 @@ static const uint16_t s_planeIndices[] =
|
||||
class ExampleSVT : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleSVT(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleSVT(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -373,8 +373,8 @@ public:
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleSVT
|
||||
, "40-svt"
|
||||
, "Sparse Virtual Textures."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#svt"
|
||||
);
|
||||
ExampleSVT
|
||||
, "40-svt"
|
||||
, "Sparse Virtual Textures."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#svt"
|
||||
);
|
||||
|
||||
@@ -320,8 +320,8 @@ namespace
|
||||
class ExampleTessellation : public entry::AppI
|
||||
{
|
||||
public:
|
||||
ExampleTessellation(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
ExampleTessellation(const char* _name, const char* _description, const char* _url)
|
||||
: entry::AppI(_name, _description, _url)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -926,8 +926,8 @@ namespace
|
||||
} // namespace
|
||||
|
||||
ENTRY_IMPLEMENT_MAIN(
|
||||
ExampleTessellation
|
||||
, "41-tess"
|
||||
, "Adaptive Gpu Tessellation."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#tess"
|
||||
);
|
||||
ExampleTessellation
|
||||
, "41-tess"
|
||||
, "Adaptive Gpu Tessellation."
|
||||
, "https://bkaradzic.github.io/bgfx/examples.html#tess"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user