mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2025-01-26 17:12:54 +00:00
94eb2195d3
* Implemented a system updater homebrew (titled Daybreak) * git subrepo pull ./troposphere/daybreak/nanovg subrepo: subdir: "troposphere/daybreak/nanovg" merged: "c197ba2f" upstream: origin: "https://github.com/Adubbz/nanovg-deko.git" branch: "master" commit: "c197ba2f" git-subrepo: version: "0.4.1" origin: "???" commit: "???" (+1 squashed commits) Squashed commits: [232dc943] git subrepo clone https://github.com/Adubbz/nanovg-deko.git troposphere/daybreak/nanovg subrepo: subdir: "troposphere/daybreak/nanovg" merged: "52bb784b" upstream: origin: "https://github.com/Adubbz/nanovg-deko.git" branch: "master" commit: "52bb784b" git-subrepo: version: "0.4.1" origin: "???" commit: "???" * daybreak: switch to using hiddbg for home blocking (+1 squashed commits) Squashed commits: [4bfc7b0d] daybreak: block the home button during installation
31 lines
573 B
C++
31 lines
573 B
C++
/*
|
|
** Sample Framework for deko3d Applications
|
|
** CShader.h: Utility class for loading shaders from the filesystem
|
|
*/
|
|
#pragma once
|
|
#include "common.h"
|
|
#include "CMemPool.h"
|
|
|
|
class CShader
|
|
{
|
|
dk::Shader m_shader;
|
|
CMemPool::Handle m_codemem;
|
|
public:
|
|
CShader() : m_shader{}, m_codemem{} { }
|
|
~CShader()
|
|
{
|
|
m_codemem.destroy();
|
|
}
|
|
|
|
constexpr operator bool() const
|
|
{
|
|
return m_codemem;
|
|
}
|
|
|
|
constexpr operator dk::Shader const*() const
|
|
{
|
|
return &m_shader;
|
|
}
|
|
|
|
bool load(CMemPool& pool, const char* path);
|
|
};
|