Made Initialize/Uninitialize static methods from non-submodules private
Former-commit-id: 78dac32c8650dc9eb4fd2c7f0bece030012497cf
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
|
||||
class NAZARA_API NzDeferredRenderTechnique : public NzAbstractRenderTechnique, public NzRenderTarget::Listener
|
||||
{
|
||||
friend class NzGraphics;
|
||||
|
||||
public:
|
||||
NzDeferredRenderTechnique();
|
||||
~NzDeferredRenderTechnique();
|
||||
@@ -49,13 +51,14 @@ class NAZARA_API NzDeferredRenderTechnique : public NzAbstractRenderTechnique, p
|
||||
|
||||
void SetPass(nzRenderPassType relativeTo, int position, NzDeferredRenderPass* pass);
|
||||
|
||||
static bool Initialize();
|
||||
static bool IsSupported();
|
||||
static void Uninitialize();
|
||||
|
||||
private:
|
||||
bool Resize(const NzVector2ui& dimensions) const;
|
||||
|
||||
static bool Initialize();
|
||||
static void Uninitialize();
|
||||
|
||||
struct RenderPassComparator
|
||||
{
|
||||
bool operator()(nzRenderPassType pass1, nzRenderPassType pass2);
|
||||
|
||||
@@ -41,7 +41,7 @@ using NzMaterialRef = NzResourceRef<NzMaterial>;
|
||||
class NAZARA_API NzMaterial : public NzResource
|
||||
{
|
||||
friend NzMaterialLoader;
|
||||
friend class NzRenderer;
|
||||
friend class NzGraphics;
|
||||
|
||||
public:
|
||||
NzMaterial();
|
||||
@@ -129,9 +129,7 @@ class NAZARA_API NzMaterial : public NzResource
|
||||
NzMaterial& operator=(const NzMaterial& material);
|
||||
NzMaterial& operator=(NzMaterial&& material);
|
||||
|
||||
static bool Initialize();
|
||||
static NzMaterial* GetDefault();
|
||||
static void Uninitialize();
|
||||
|
||||
private:
|
||||
struct ShaderInstance
|
||||
@@ -145,6 +143,9 @@ class NAZARA_API NzMaterial : public NzResource
|
||||
void GenerateShader(nzUInt32 flags) const;
|
||||
void InvalidateShaders();
|
||||
|
||||
static bool Initialize();
|
||||
static void Uninitialize();
|
||||
|
||||
NzColor m_ambientColor;
|
||||
NzColor m_diffuseColor;
|
||||
NzColor m_specularColor;
|
||||
|
||||
@@ -22,6 +22,7 @@ class NzContextImpl;
|
||||
class NAZARA_API NzContext : public NzResource
|
||||
{
|
||||
friend NzContextImpl;
|
||||
friend class NzOpenGL;
|
||||
|
||||
public:
|
||||
NzContext() = default;
|
||||
@@ -39,10 +40,11 @@ class NAZARA_API NzContext : public NzResource
|
||||
static const NzContext* GetCurrent();
|
||||
static const NzContext* GetReference();
|
||||
static const NzContext* GetThreadContext();
|
||||
|
||||
private:
|
||||
static bool Initialize();
|
||||
static void Uninitialize();
|
||||
|
||||
private:
|
||||
NzContextParameters m_parameters;
|
||||
NzContextImpl* m_impl = nullptr;
|
||||
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
|
||||
class NAZARA_API NzShaderLibrary
|
||||
{
|
||||
friend class NzRenderer;
|
||||
|
||||
public:
|
||||
NzShaderLibrary() = delete;
|
||||
~NzShaderLibrary() = delete;
|
||||
@@ -21,12 +23,13 @@ class NAZARA_API NzShaderLibrary
|
||||
static NzShader* Get(const NzString& name);
|
||||
static bool Has(const NzString& name);
|
||||
|
||||
static bool Initialize();
|
||||
static void Register(const NzString& name, NzShader* shader);
|
||||
static void Uninitialize();
|
||||
static void Unregister(const NzString& name);
|
||||
|
||||
private:
|
||||
static bool Initialize();
|
||||
static void Uninitialize();
|
||||
|
||||
static std::unordered_map<NzString, NzShaderRef> s_library;
|
||||
};
|
||||
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
|
||||
class NAZARA_API NzUberShaderLibrary
|
||||
{
|
||||
friend class NzRenderer;
|
||||
|
||||
public:
|
||||
NzUberShaderLibrary() = delete;
|
||||
~NzUberShaderLibrary() = delete;
|
||||
@@ -21,12 +23,13 @@ class NAZARA_API NzUberShaderLibrary
|
||||
static NzUberShader* Get(const NzString& name);
|
||||
static bool Has(const NzString& name);
|
||||
|
||||
static bool Initialize();
|
||||
static void Register(const NzString& name, NzUberShader* uberShader);
|
||||
static void Uninitialize();
|
||||
static void Unregister(const NzString& name);
|
||||
|
||||
private:
|
||||
static bool Initialize();
|
||||
static void Uninitialize();
|
||||
|
||||
static std::unordered_map<NzString, NzUberShaderRef> s_library;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user