summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2022-08-14 12:38:08 -0400
committerFox Caminiti <fox@foxcam.net>2022-08-14 12:38:08 -0400
commit7cfb7ce652d1c13ab72392d95dc93d967bf505fb (patch)
treeb68e0ddbcce7ee5c125c170920b815112c0c3d36 /main.cpp
parentbc5375149c0ecb416848a2d3657ea41ae97177b3 (diff)
concave masking; software anti aliasing
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index 84d3559..2153ae6 100644
--- a/main.cpp
+++ b/main.cpp
@@ -237,7 +237,7 @@ int main(int argc, char *argv[]) {
InitMemoryTable(&GlobalMemory, &Memory, 10 * 1024 * 1024, F_Strings, "Strings");
InitMemoryTable(&GlobalMemory, &Memory, (uint64)200 * 1024 * 1024, B_LayerBitmaps, "Layer buffer");
- InitMemoryTable(&GlobalMemory, &Memory, (uint64)200 * 1024 * 1024, B_LoadedBitmaps, "Loaded bitmap buffer");
+ InitMemoryTable(&GlobalMemory, &Memory, (uint64)600 * 1024 * 1024, B_LoadedBitmaps, "Loaded bitmap buffer");
Memory.Scratch = AllocateMemory(&Memory, (uint64)64*1024*1024, B_LayerBitmaps);
@@ -509,7 +509,12 @@ int main(int argc, char *argv[]) {
}
}
#else
- OutputToViewport(&CompBuffer, &State, textureID);
+ Bitmap_ConvertPacking(CompBuffer.PackedBuffer, CompBuffer.UnpackedBuffer,
+ CompBuffer.Width, CompBuffer.Height, CompBuffer.BytesPerPixel, 1);
+ EndRenderState(&State);
+ glBindTexture(GL_TEXTURE_2D, textureID);
+ glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, CompBuffer.Width, CompBuffer.Height, GL_RGBA, GL_UNSIGNED_BYTE,
+ CompBuffer.UnpackedBuffer);
#endif
ImGui::Render();