RUVIDEO
Поделитесь видео 🙏

#1: Develop a Game Using SDL2: The Display

Welcome to the all nbew SDL2 Game Dev series! We are going to use C++ as are programming language, GIMP as our Image Editor(free) and Audacity to create sounds(free). Down below is the reference of all SDL2 functions used in this video, Enjoy!

(1) SDL_Init(Uint32 flags);
flags: Subsystem Initialization Flags
The best way is to just fill in SDL_INIT_EVERYTHING, this will initialize everything from Graphics to Audio and Controllers etc.

(2) SDL_CreateWindow(const char* title, int x, int y, int width, int height, Uint32 flags);
title: The Title of the Window.
x: The position of the window on x axis.
y: The position of the window on y axis.
width: the width of the window.
height: the height of the window.
flags: 0 or More SDL_WindowFlags, preferred flag: SDL_WINDOW_SHOWN.

This function creates the just the window!

(3) SDL_CreateRenderer(SDL_Window* window, int index, Uint32 flags);
window: The Window.
index: Use -1 to initialize the Renderer.
flags: Use SDL_RENDERER_PRESENTVSYNC and SDL_RENDERER_ACCELERATED to render everything way faster!

This functions creates the renderer.

(4) SDL_DestroyWindow(SDL_Window* window);
window: The Window.

Destroys The Window.

(5) SDL_DestroyRenderer(SDL_Renderer* renderer);
renderer: The Renderer.

Destroys The Renderer.

(6) SDL_PollEvent(SDL_Event event);
event: SDL_Event Datatype.

Polls events link close and minimize.

These are all the SDL functions used in the video, in the next video we are going to create the InputHandler class and start rendering a few basic shapes! That's it thanks for watching!

Website: https://blackplaquegames.com/
Patreon: https://www.patreon.com/BlackPlaqueGamesStudio
Download SDL2: https://www.libsdl.org/download-2.0.php
Game Jam: https://itch.io/jam/spell-jam-2019-1

Make sure to subscribe and get ready for the Spell game jam 2019 #1!

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «#1: Develop a Game Using SDL2: The Display», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.