csprite
immer
csprite | immer | |
---|---|---|
13 | 25 | |
74 | 2,433 | |
- | - | |
9.5 | 6.2 | |
7 days ago | 3 days ago | |
C++ | C++ | |
BSD 3-clause "New" or "Revised" License | Boost Software License 1.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
csprite
-
My Guide To Get Into Computer Programming
mainly i'm working on a pixel art editor: csprite written in C/C++...
-
Floats vs Unsigned Ints For Representing Colors
i'm working on a pixel art editor and currently i use unsigned ints of size 1 byte to represent each color channel in a pixel, so 4 bytes a pixel, but libraries like ImGui use floats going between 0 to 1 to represent each color channel in a pixel so 16 bytes a pixel.
-
Macintosh 2 - Partially Top Down
Program Used: csprite
-
Top down house i made in my own pixel-art editor (csprite) using pixel pete's video
hi all, i'm working on my pixel art editor csprite and recently i implemented a custom file-format to store layers and stuff and finally created this art work.
-
Calling ImGui Functions From Lua Code Without Loosing Much Performance
i'm working on this pixel art editor csprite, and i'm using ImGui for the GUI.
-
How to implement a 2d software renderer?
I'm quite new in graphics programming, and I'm working on this pixel art editor csprite and currently it uses OpenGL for blending and rendering everything on screen but I want to implement custom blending functions like multiply add subtract etc which I'm not sure how it's done on shaders and stuff.
-
Black Color Not Showing Over My Texture With Checkerboard Pattern
i'm working on my pixel art editor csprite and i wanted to implement checkerboard pattern for my canvas and i ended up with this in my fragment shader:
-
How To Icons in C++ & GLFW?
for the UI font i am using a TTF font which i converted into a header file with all the data: FontMontserrat_Bold.h using binary_to_compressed_c.cpp provided by ImGui.
- A Minimalist Pixel Art Editor For Beginners
-
How To Icons In C++ & GLFW
I am working on a pixel art editor: https://github.com/pegvin/CSprite
immer
-
Text Editor Data Structures: Rethinking Undo
I've been working on an editor (not text) in C++ and pretty early got into undo/redo. I went down the route of doIt/undoIt for commands but that quickly got old. There was both the extra work needed to implement undo separately for every operation, but also the nagging feeling that the undo operation for some operation wasn't implemented correctly.
In the end, I switched to representing the entire document state using persistent data structures (using the immer library). This vastly simplified things and implementing undo/redo becomes absolutely trivial when using persistent data structures. It's probably not something that is suitable for all domains, but worth checking out.
https://github.com/arximboldi/immer
-
Show HN: A hash array-mapped trie implementation in C
How does this compare to https://github.com/arximboldi/immer (other than the C/C++ difference)?
Also, it's my understanding that, in practice, persistent data structures require a garbage collector in order to handle deallocation when used in a general-purpose way. How does your implementation handle that?
-
Text Editor Data Structures
You might be interested in ewig and immer by Juan Pedro Bolivar Puente:
https://github.com/arximboldi/ewig
https://github.com/arximboldi/immer
See the author instantly opening a ~1GB text file with async loading, paging through, copying/pasting, and undoing/redoing in their prototype “ewig” text editor about 27 minutes into their talk here:
https://m.youtube.com/watch?v=sPhpelUfu8Q
It’s backed by a “vector of vectors” data structure called a relaxed radix balanced tree:
https://infoscience.epfl.ch/record/169879/files/RMTrees.pdf
That original paper has seen lots of attention and attempts at performance improvements, such as:
https://hypirion.com/musings/thesis
https://github.com/hyPiRion/c-rrb
-
value semantics and spans/views
You’re absolutely right, however people have been putting in the “extra efforts” required for efficiency. Check out immer if you’re interested.
-
How to synchronize access to application data in multithreaded asio?
The C++ immer library: https://github.com/arximboldi/immer
-
Purely Functional Data Structure by Chris Okasaki [pdf]
For C++ check this one out - https://github.com/arximboldi/immer
- Persistent and immutable data structures written in C++14
-
Introducing B++ Trees, a C++ B+ Tree library
Yeah I agree that I should link that wikipedia page in the docs, I'll do that as soon as I get a chance. immer (https://github.com/arximboldi/immer) also links that page in its docs, for the exact same reason I'm sure. Interestingly, there is a lot of overlap between persistent data structures in the functional programming sense and persistent data structures in the persisted-to-disk sense because persistent data structures in the FP sense are one of the best ways to guarantee atomic updates and safe failure recovery in a persisted-to-disk system! Btrfs and ZFS, as well as many databases, are at their core basically just copy-on-write B+ trees.
-
What are some architectural patterns for creating a game editor.
I’ve never tried it, but I love the idea of implementing editor scene state using immutable data structures like https://github.com/arximboldi/immer With that, every edit would append a new node to a list of scene states. Undo/redo becomes iterating your view of the scene up and down through that list. Can’t screw up an undo function if there’s never any work to do :P
-
TypeScript Without Side Effects
I have! I think it's related to the C++ immer library which I used several years ago in Vortex. It's kinda like the previous generation of ValueScript. 🍻
What are some alternatives?
cpaint - https://briancallahan.net/blog/20220220.html
babashka - Native, fast starting Clojure interpreter for scripting
embed - std::embed implementation for the poor (C++17)
clj-kondo - Static analyzer and linter for Clojure code that sparks joy
aseprite - Animated sprite editor & pixel art tool (Windows, macOS, Linux)
graalvm-clojure - This project contains a set of "hello world" projects to verify which Clojure libraries do actually compile and produce native images under GraalVM.
cdogs-sdl - Classic overhead run-and-gun game
ewig - The eternal text editor — Didactic Ersatz Emacs to show immutable data-structures and the single-atom architecture
ParsecSoda - Parsec Soda is a custom open-source game streaming app that integrates with Parsec API and is focused in Host experience.
deprecated-coalton-prototype - Coalton is (supposed to be) a dialect of ML embedded in Common Lisp.
awesome-modern-cpp - A collection of resources on modern C++
libgit2 - A cross-platform, linkable library implementation of Git that you can use in your application.