seekrs / macrolibx Goto Github PK
View Code? Open in Web Editor NEW✏️ Rewritten version of the minilibx graphics API used at 42school, using SDL2 & Vulkan.
Home Page: https://macrolibx.kbz8.me
License: MIT License
✏️ Rewritten version of the minilibx graphics API used at 42school, using SDL2 & Vulkan.
Home Page: https://macrolibx.kbz8.me
License: MIT License
I can't figure out how to use multiple fonts on one image/frame on rendering, I don't know if that's supposed to be possible, and if not I think it'd be a great addition. In any case, great, clean and fast code !
e.g:
int my_loop(t_mlx *mlx)
{
mlx_set_font(mlx->mlx, mlx->win, "font1.ttf");
mlx_string_put(mlx->mlx, mlx->win, 200, 50, 0xFF00FFFF, "Hello im font1");
mlx_set_font(mlx->mlx, mlx->win, "font2.ttf");
mlx_string_put(mlx->mlx, mlx->win, 200, 100, 0xFF00FFFF, "Hi font1, im font2");
return (0);
}
Here's an issue to propose and discuss ways to reduce or eliminate leaks from SDL2 and Nvidia. If anyone has any idea he/she will be pleased to share it here !
We noticed that the use of RAM only increases until the PC freezes. It gets faster and faster if you put pixels in the image. We noticed this in the function below called in a loop with mlx_loop_hook()
void function(t_mlx *mlx)
{
if (mlx->img)
mlx_destroy_image(mlx->mlx, mlx->img);
mlx->img = mlx_new_image(mlx->mlx, WIDTH, HEIGHT);
mlx_put_image_to_window(mlx->mlx, mlx->win, mlx->img, 0, 0);
}
[MacroLibX] Error : Graphics allocator : some MLX-dependant allocations were not freed before destroying the display (2644 active allocations), please report, this should not happen
#include <mlx.h>
int main()
{
void* mlx = mlx_init();
mlx_destroy_display(mlx);
mlx = mlx_init(); // crash with SDL_Init
mlx_destroy_display(mlx);
return 0;
}
wtf
Sometimes a conditional jump can be reported by valgrind on image destruction
seems to be coming from https://github.com/seekrs/MacroLibX/blob/master/src/renderer/descriptors/vk_descriptor_set.cpp#L122
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.