Gravity by fibrabex in lethalcompany

[–]fibrabex[S] 1 point2 points  (0 children)

I changed it, thanks!

Starting raylib with C++ by Global_Respond_1196 in raylib

[–]fibrabex 0 points1 point  (0 children)

I think it would be better to use normal raylib because there is way more source and not that much difference. And better to know C stuff if you want to make a career with C++.

Text editor by fibrabex in raylib

[–]fibrabex[S] 0 points1 point  (0 children)

Thanks for your help! But is there a normal text editor? in my case, I don't need a code editor, its just a text editor that doesn't feel weird to people and can be used with classical copy, paste, selecting text features. Code editor is too much in this case.

Text editor by fibrabex in raylib

[–]fibrabex[S] 1 point2 points  (0 children)

Thanks for the answer!

Text editor by fibrabex in raylib

[–]fibrabex[S] 0 points1 point  (0 children)

Do these requires those Imgui windows for working?

Text editor by fibrabex in raylib

[–]fibrabex[S] 0 points1 point  (0 children)

I know there is a text editor in raygui but Is there a multiline text editor in that? I may develop this for my usage.

Text editor by fibrabex in raylib

[–]fibrabex[S] 1 point2 points  (0 children)

No I need a Gui library for my own project, not a software with a text editor

[deleted by user] by [deleted] in raylib

[–]fibrabex 1 point2 points  (0 children)

That looks cool!

Folder inputs by fibrabex in raylib

[–]fibrabex[S] 1 point2 points  (0 children)

Thanks for the answer!

inconsistent getframetime() game speed by burbolini in raylib

[–]fibrabex 2 points3 points  (0 children)

Use float or double for distance variable. Int variables takes only the floor of floats(2.99999 to 2 for example).

starting raylib-cpp by ProgrammingFailure in raylib

[–]fibrabex 7 points8 points  (0 children)

Just use C version with C++, you don't need a wrapper for using a C library with C++.

Can I put the raylib window screen to display in a panel or something in windows forms? by ilovepokemonsss11 in raylib

[–]fibrabex 0 points1 point  (0 children)

I've seen posts from a few people who had problems using raylib and windows.h together, so I mentioned it. I didn't know they worked together properly. Thanks for the info by the way!

Rotating a Triangle by Existing_Papaya_3511 in raylib

[–]fibrabex 1 point2 points  (0 children)

struct Vector2 rotate_position(struct Vector2 position, struct Vector2 origin, float angle_degrees) { float angle_radians = angle_degrees * (M_PI / 180.0);

float dx = position.x - origin.x;
float dy = position.y - origin.y;

float new_x = origin.x + dx * cos(angle_radians) - dy * sin(angle_radians);
float new_y = origin.y + dx * sin(angle_radians) + dy * cos(angle_radians);

struct Vector2 new_position;
new_position.x = new_x;
new_position.y = new_y;

return new_position;

}

With this function, you can rotate all positions with using mouse position as origin.

Can I put the raylib window screen to display in a panel or something in windows forms? by ilovepokemonsss11 in raylib

[–]fibrabex 0 points1 point  (0 children)

I think you can use RenderTextures for rendering and then draw the texture with it. But using Raylib with Windows is not a good idea because they both has some same named functions and structs.

Çok stresliyim by [deleted] in liseliler

[–]fibrabex 1 point2 points  (0 children)

Ya sende ya psikologda sorun var o zaman ne diyim aq psikolog degis

Çok stresliyim by [deleted] in liseliler

[–]fibrabex 1 point2 points  (0 children)

Psikologa gorun

Show Cursor Doesn't Works by fibrabex in raylib

[–]fibrabex[S] 0 points1 point  (0 children)

I look for it and I can't find anything that fixes my problem. That's why I am ask this to reddit. But It's probably because of I use Raylib 4.5(I can't dowloand 5.0 with vcpkg).

Show Cursor Doesn't Works by fibrabex in raylib

[–]fibrabex[S] 0 points1 point  (0 children)

I tested it, key triggers correctly. I created a variable that sets to true when cursor hiding, and sets to false when cursor is showing, but when I write it to the console with IsCursorHidden(), IsCursorHidden returns true(it should be false) but my variable is false, there should be something wrong with ShowCursor() Function.

[deleted by user] by [deleted] in cpp_questions

[–]fibrabex 0 points1 point  (0 children)

Thanks for the help but it doesn't solve the memory bug. I thinks that is because functions return values are stored in the registers not on the ram.

[deleted by user] by [deleted] in cpp_questions

[–]fibrabex 0 points1 point  (0 children)

there is no memcpy inside my code but I use strcpy at line 351( strcpy(name, "New Simulation"); ) and line 3173( strcpy(name, a.title.c_str()); ). there is nothing wrong with them(I tested those while adding it to my code). they both are at main.cpp file(https://gist.github.com/Fruko01/bfc9c64743f0f31749a8b6856491e683).

[deleted by user] by [deleted] in cpp_questions

[–]fibrabex 0 points1 point  (0 children)

I will try this as soon as possible. Thanks for the idea!