We'll be using the viewport to create subscreens. SDL 2.0 also lets you control where you render on the screen using the viewport. Here we'll be using it to render some common shapes. Here we'll be loading an image to render it using textures.Īnother new feature in SDL 2.0 is hardware accelerated primitive rendering. Here we'll be using the SDL_image extension library to load png images.Ī big new feature in SDL 2.0 is hardware accelerated texture based 2D rendering. We'll also take a smaller image and stretch it to fit the screen.Įxtension Libraries and Loading Other Image Formats Now that we know how to load and blit surfaces, it's time to make our blits faster. Optimized Surface Loading and Soft Stretching Here we'll learn to handle keyboard input. Here we'll start handling user input by allowing the user to X out the window. Now that we can get a window to appear, lets blit an image onto it. In this tutorial we will be setting up the SDL library and creating our first window. Follow Lazy Foo' Productions on Twitter: Follow of Contents
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |