Hapaxia

(programming things mostly in C++) && (beginner/amateur pixel artist) && (learning Japanese)

2025-06-21

Updated Kairos, my timing library.

Already entirely header-only, all objects are now single files, having compiled .inl into .hpp.

Some added features here and there too, which is always nice ;)

However, possibly the biggest change is the addition of a new object: Clock. It simplifies getting the current date and time and can work with any time zone.

Note: this update is on a different branch known simply as "newer" and is not yet part of "master".

github.com/Hapaxia/Kairos

#cpp #kairos

2025-02-22

Selba Ward is now fully up-to-date to use with SFML 3.

This includes all of the drawables, of course, but now also all of the documentation, examples and tutorials!

In addition, there are a few new drawables since I last posted about it so here are a few GIFs 😀

github.com/Hapaxia/SelbaWard/w

#selbaward #sfml #animation #sfml3 #update #coding #cpp

2024-10-22

I tried. I mean, I REALLY tried, to build SFML 3 from source (since its release ) using CMake and it really just does not like me.

So, I guess I'll wait for the official builds and stick to SFML 2 in the meantime...

#sfml #cmake #build #cpp

2024-10-22

@darkcisum Since it's not actually any better (unless in Debug mode), it seems somewhat pointless finishing it.

I'm interested how using multiple sf::Texts can be just as fast (sometimes actually faster) than just a single (static) vertex array of triangles with a single draw call.

At least, this goes to show that just using loads of sf::Texts should be fine in pretty much all standard cases! :)

2024-10-21

I created a Batched Text object for SFML that renders multiple texts as one vertex array, reducing the draw calls down to just one (including outlines). However, it's not actually faster in Release mode (if all sf::Texts match and are drawn together) and that irks me.

With that said, my object can export the triangles of all texts together so they can be used to create a (single) vertex buffer and that IS faster! :)

#cpp #sfml #optimization #batch

2024-06-12

I lost my particle system that I created a while back because it was created on a portable device and that device is "unwell".

Therefore, I have decided that I am going to attempt to create a new one from scratch!

There's a lesson here: always have a backup...

#cpp #dev

Hapaxia boosted:
2024-04-18

Made a dumb website so I wouldn't ever have to Google "tm symbol" again.

symbol.wtf

2024-02-15

Decided Selba Ward's Polygon wasn't good enough so updated it again (to v1.4).

It now does vertex colours, textures, clockwise vertices, as well as getting its perimeter, area, centroid and centre of mass (yes they're different!) amongst other stuff.

I haven't set up a Simple Example or screenshot to show off these features yet, but when I do, I'll let you know :D

github.com/Hapaxia/SelbaWard/p

#selbaward #sfml #polygon

2024-02-14

@ClarusPlusPlus Thought you'd've done this automatically; you've worked with console displays a lot, right?😀

2024-02-14

@ClarusPlusPlus Does adding a space work? Or is not just a "half-width" issue?

2024-02-12

Added toggleable Wireframe/mesh to Polygon.
Obviously, its colour is customisable too.

Also removed a hard-coded triangle limit that limited the number of triangles created to just 100! Now, this limit is customisable and defaults to 10,000.

github.com/Hapaxia/SelbaWard/w

#selbaward #sfml #polygon #wireframe #mesh

Filled polygon with holes and a mesh wireframe overlaid.
2024-02-07

I was going to write code but I haven't finished playing Quantum Break yet so I think I'll just go do that instead 😀

2024-01-31

Plinth's SFML extension can now resize SFML images!

You can resize any portion of an image to any size.

There are also a few options depending on the type of method used to resize.

github.com/Hapaxia/Plinth/comm

#sfml #plinth #image #resize #imageprocessing

2024-01-25

@darkcisum Haha! I think there are enough of those already, probably! 😆

With that said, the scroll bars are SFML and I do keep making random UI-type things for fun (text entry, scalable layout guides, tool-tips etc.)

2024-01-24

Just casually making an app and I have spent far too long making the custom scroll bars work exactly how I want them to. Just basic scroll bars drawn by basic rectangles...

...and I'll probably want to tweak them in the future. It never ends!

Can I actually make some of the actual app now, please?!

#dev #cpp #sfml

2024-01-22

@ClarusPlusPlus Thank you! It needed some freshening up, especially considering I use it in every project!😀

2024-01-22

Due to it being its 10th anniversary, I decided to give a complete overhaul to Plinth, my foundation library.

Includes: new additions, upgrades, optimizations, fixes some modernization and code-style adjustments.

github.com/Hapaxia/Plinth/comm

#plinth

I can't believe it's been a decade since I made it!

2024-01-18

@rubenwardy This "tiny change" is everything. Nice work!

2024-01-17

@ClarusPlusPlus I'm for letterboxing but some people don't like it and think they're "wasting" screen. (it reminds me of my brother stretching 4:3 to always fit 16:9... ew!)

Some "modern" games allow more freedom here to allow immersive atmosphere but it only really works with 3D.

Still, if you can have letterboxes, you have space for more user-interface/artwork! If your UI is designed to be flexible, it can adjusted depending on user-preference.

2024-01-02

@silvermoon82 @ClarusPlusPlus I was also going to suggest warp/portal/teleport. Gate is probably the best option for the other but you can also use things like blockade, barrier or hatch.

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst