frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ask HN: Who uses open LLMs and coding assistants locally? Share setup and laptop

236•threeturn•10h ago•142 comments

Ask HN: Why I rarely see game dev startup here?

3•blindprogrammer•1h ago•1 comments

Tell HN: iPadOS 26 bricked my iPad Pro

6•designerbenny•2h ago•2 comments

Tell HN: Azure outage

875•tartieret•2d ago•802 comments

Scientists can't define consciousness, yet we think AI will have it

8•f_of_t_•8h ago•16 comments

Ask HN: Does anyone else with astigmatism not like dark-mode?

6•morkalork•10h ago•7 comments

I'm tired of reading five different API docs just to accept payments

3•devodii•7h ago•1 comments

Ask HN: Is anybody running a successful non-subscription business?

8•fandorin•15h ago•23 comments

Tell HN: Twilio support replies with hallucinated features

156•haute_cuisine•2d ago•41 comments

Ask HN: Is Udacity now geo blocking countries?

4•estebarb•21h ago•0 comments

Ask HN: Not treated respectfully by colleague – advice?

114•golly_ned•6d ago•124 comments

Ask HN: Does Apple dictation (iPhone) process on device?

3•dav43•16h ago•2 comments

Anyone else having AWS STS issues?

5•ahawkins•17h ago•1 comments

Can we talk about the rude installers not asking for installation locations?

45•breezk0•9h ago•76 comments

Ask HN: Thoughts on /etc/hosts instead of DNS for production applications?

12•notepad0x90•2d ago•13 comments

Tell HN: OpenAI now requires ID verification and won't refund API credits

203•retube•6d ago•119 comments

Ask HN: How to deal with long vibe-coded PRs?

5•philippta•2d ago•11 comments

How the most feared algorithm in algebra is simple

13•diegoofernandez•1d ago•4 comments

I interviewed the Rails developer who "accidentally" hacked 37signals

3•basileafe•1d ago•1 comments

Ask HN: Is AWS down again?

84•ajdude•4d ago•37 comments

GlyphGL: Open-Source C/C++ header only lightweight OpenGL text renderer

7•DareksCoffee•2d ago•1 comments

Ask HN: Advice for creating a USB device linking 2 computers

20•WorldDev•6d ago•44 comments

I've built vetr.is – privacy respecting host, looking for beta testers/feedback

6•falkensmaze66•2d ago•5 comments

Tell HN: macOS 26 is making me have regrets for the first time in 12yrs

22•trumbitta2•4d ago•25 comments

Google Demanded My Drivers Lic Before Letting Me Read an Article

79•keernan•6d ago•36 comments

You've reached the end!

Open in hackernews

GlyphGL: Open-Source C/C++ header only lightweight OpenGL text renderer

7•DareksCoffee•2d ago
Hi y'all I'm very happy to share GlyphGL, a new minimal project I wrote from scratch that requires zero dependencies It's a cross-platform (Windows, Linux, Macos) header only C/C++ library designed for simplicity and absolute control (still under development) No FreeType: It contains it's own ttf parser, rasterizer and renderer No OpenGL Loader: GlyphGL includes it's own built in loader that handles all necessary OpenGL functions and pointers across many platforms, although it can be disabled using GLYPH_NO_GL_LOADER Compatibility: GlyphGL is written with C99 syntax, meaning it can be ported easily to other platforms Performance: Although still under development and lacking heavy optimizations (like SDF rendering and other advanced techniques), GlyphGL remains notably fast thanks to its efficient batch rendering system

i'm open to criticism to help this project improve and grow, so if you find any issues, bug or need some clarifications, please comment in the thread or pull an issue in the repo!

repo: https://github.com/DareksCoffee/GlyphGL

Comments

0xCE0•1d ago
Is this vibe-coded?

Variable naming cases differ between snake/camel cases even they are at same row? And variable naming is almost too consistent and "clear" to be written as human.

Uses GCC instrinsics that are not in MSVC, so not cross-platform or "C99 syntax".

No comments in code to explain/clarify anything at all.

Besides, at least in my real world first hand experience, in Windows, you cannot load all OpenGL functions just by using wglGetProcAddress(), because it doesn't return function pointers to those basic OpenGL functions that exported by opengl32.dll. And if you want to check valid pointer addresses, in Windows you should also consider all return addresses below 4 as invalid/"NULL". I wrote this note in my OpenGL function pointer loader as comment to remind myself what I learned as first hand experience when actually writing the code myself and struggling through the messy reality :)