profile
viewpoint
Christian Vallentin vallentin Odense, Denmark https://vallentin.dev Software Engineer specializing in Computer Graphics & Open-Source Enthusiast

vallentin/glText 57

Cross-platform single header text rendering library for OpenGL

vallentin/mount.py 29

Module for listing, mounting and unmounting media devices

vallentin/LoadBMP 11

Small and simple single-header C library for loading and saving BMP images

vallentin/hook.lua 9

Module for hooking and intercepting function calls

vallentin/GLCollection 3

Collection of OpenGL snippets and examples

vallentin/comment-parser 2

This crate implements a (pull) parser for extracting comments from code in various programming languages.

vallentin/detect-lang 2

Detect the programming language of paths and extensions

vallentin/dialoguer 1

Rust utility library for nice command line prompts and similar things

vallentin/metro 1

Metro is a crate for creating and rendering graphs similar to `git log --graph`

vallentin/askama 0

Type-safe, compiled Jinja-like templates for Rust

issue closedvallentin/LoadBMP

Why the need of providing "components" when decoding

With components I mean the last parameter (LOADBMP_RGBA/LOADBMP_RGB)

Isn't this something you could actually get from

bmp_info_header[14];

You could even leave the components parameter but make it a reference so whoever calls the function can get the value of the component back, instead of providing it, so you can read random bmps without having to worry about their bits per pixels

closed time in 14 minutes

Ridote

issue commentvallentin/LoadBMP

Why the need of providing "components" when decoding

Ahh, thanks for the quick reply! I guess that make sense and answers the question, I'm still looking in the code just out of curiosity.

Very thank you and nice work!

Ridote

comment created time in 14 minutes

issue openedvallentin/LoadBMP

Why the need of providing "components" when decoding

With components I mean the last parameter (LOADBMP_RGBA/LOADBMP_RGB)

Isn't this something you could actually get from

bmp_info_header[14];

You could even leave the components parameter but make it a reference so whoever calls the function can get the value of the component back, instead of providing it, so you can read random bmps without having to worry about their bits per pixels

created time in 2 hours

startedvallentin/PyLua

started time in 4 days

issue openedvallentin/glText

gltDrawText not drawing after set mvp matrix (model*view*perspective)

why i cann't assigned mvp multiple matrix from 3d model?

created time in 7 days

fork 2188886665/hook.lua

Module for hooking and intercepting function calls

fork in 10 days

startedvallentin/glText

started time in 14 days

fork kwiksher/hook.lua

Module for hooking and intercepting function calls

fork in 14 days

startedvallentin/hook.lua

started time in 16 days

startedvallentin/hook.lua

started time in 17 days

startedvallentin/hook.lua

started time in 22 days

startedvallentin/glText

started time in a month

startedvallentin/GLCollection

started time in a month

startedvallentin/glText

started time in a month

startedvallentin/LoadBMP

started time in 2 months

startedvallentin/glText

started time in 2 months

issue openedvallentin/GLCollection

glcGetBestMonitor() when window off-screen.

In glcGetBestMonitor(), I suggest initialising the bestArea variable to INT_MIN rather than 0.

Consider the case where the window is entirely outside monitor's bounds. The area calculation result would be negative, yet can still be the nearest 'best' choice.

created time in 2 months

startedvallentin/vkel

started time in 2 months

issue openedvallentin/glText

GLTtext E0135 has no member gltGetTextWidth & gltGetTextHeight

I have a GLFW project and was trying to call these two functions, but Im receiving E0135 errors for both of them.

created time in 3 months

fork cappah/glText

Cross-platform single header text rendering library for OpenGL

fork in 3 months

startedvallentin/LoadBMP

started time in 3 months

fork MSylvia/glText

Cross-platform single header text rendering library for OpenGL

fork in 3 months

startedvallentin/glText

started time in 3 months

more