Search found 24 matches

by wazzcob
Tue Jun 22, 2021 11:49 am
Forum: General Discussion
Topic: Jameson's Door on DeviantArt/Pixiv
Replies: 44
Views: 15342

Re: Jameson's Door on DeviantArt/Pixiv

Hmm... Just now I saw that this dude are also a photographer-photoshopper. Well, cool, yes.
by wazzcob
Tue Jun 22, 2021 11:48 am
Forum: Engine Programmers
Topic: SDL2 & SDL_Event.
Replies: 2
Views: 5732

Re: SDL2 & SDL_Event.

Everything is simple here - you just need to understand what multithreaded programming is and why it is needed and what tasks it solves. Read at least something about it. Problem on this topic will take it off like a hand. It was not needed. Everything that needs to be done without multithreading. ...
by wazzcob
Sun Jun 20, 2021 5:44 am
Forum: Engine Programmers
Topic: SDL2 & SDL_Event.
Replies: 2
Views: 5732

SDL2 & SDL_Event.

Faced the need to use two event handlers. Here's an example of a simple quick program (without any checks). #include <SDL2/SDL.h> int main(int argc, char **argv) { SDL_Window *window = SDL_CreateWindow("Hello World!", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 640, 480, 0); SDL_Event event; whi...
by wazzcob
Tue Jun 15, 2021 5:09 am
Forum: Engine Programmers
Topic: IF in shaders
Replies: 7
Views: 2171

Re: IF in shaders

What do you mean "bad"? Slow? Firstly, for such a construction (assigning a value to a vector), there is no point in taking care of time at all, because it is negligible here. Secondly, this statement (conditions in a shader are bad) made sense many years ago. In those days, at first all branches we...
by wazzcob
Sat Jun 12, 2021 8:19 am
Forum: Engine Programmers
Topic: IF in shaders
Replies: 7
Views: 2171

Re: IF in shaders

nevertheless, this question is still interesting to me... I want a more or less intelligible answer to it!