|
|
|
@ -1169,6 +1169,9 @@ namespace olc |
|
|
|
|
int32_t TextEntryGetCursor() const; |
|
|
|
|
bool IsTextEntryEnabled() const; |
|
|
|
|
|
|
|
|
|
const uint8_t GetMosaicEffect()const; |
|
|
|
|
void SetMosaicEffect(uint8_t effectLevel); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
@ -1245,6 +1248,7 @@ namespace olc |
|
|
|
|
std::vector<std::string> vDroppedFilesCache; |
|
|
|
|
olc::vi2d vDroppedFilesPoint; |
|
|
|
|
olc::vi2d vDroppedFilesPointCache; |
|
|
|
|
uint8_t mosaic=0; |
|
|
|
|
|
|
|
|
|
// Command Console Specific
|
|
|
|
|
bool bConsoleShow = false; |
|
|
|
@ -3588,6 +3592,13 @@ namespace olc |
|
|
|
|
bool PixelGameEngine::IsTextEntryEnabled() const |
|
|
|
|
{ return bTextEntryEnable; } |
|
|
|
|
|
|
|
|
|
const uint8_t PixelGameEngine::GetMosaicEffect()const{ |
|
|
|
|
return mosaic; |
|
|
|
|
} |
|
|
|
|
void PixelGameEngine::SetMosaicEffect(uint8_t effectLevel){ |
|
|
|
|
mosaic=effectLevel; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void PixelGameEngine::UpdateTextEntry() |
|
|
|
|
{ |
|
|
|
@ -4963,7 +4974,7 @@ namespace olc |
|
|
|
|
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); |
|
|
|
|
locUseProgram(m_nQuadShader); |
|
|
|
|
GLint myUniformLocation = glGetUniformLocation(m_nQuadShader, "mosaic"); |
|
|
|
|
glUniform1i(myUniformLocation,0); |
|
|
|
|
glUniform1i(myUniformLocation,ptrPGE->GetMosaicEffect()); |
|
|
|
|
locBindVertexArray(m_vaQuad); |
|
|
|
|
|
|
|
|
|
#if defined(OLC_PLATFORM_EMSCRIPTEN) |
|
|
|
|