• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

Archived

This topic is now archived and is closed to further replies.

SonShadowCat

Can anyone give me an example?

20 posts in this topic

can anyone posy or give me a link that shows how to create a basic OpenGL window with SDL? i would really appreciate it thx "Those who serve no purpose, have no purpose"
0

Share this post


Link to post
Share on other sites
I don''t know any links and I''m not gonna post straight from someone elses copywrited material , but check out the book called Linux Game Programming. Its not too expensive and it covers SDL with OpenGL.
~Thek
0

Share this post


Link to post
Share on other sites
Umm... if the OpenGL book was written for Windows, it would use the Windows API, not SDL.
Trust me, you can ignore all the Linux stuff if you want and just stick with the SDL and OpenGL part. I''m not in to Linux programming myself, but it may be a topic you''ll want to explore later anyway. And as I said, I highly doubt you''ll find a Windows centered graphics book discussing SDL in any detail at all. SDL is often used for porting code from Windows to other operating systems, namely Linux or for making an open-OS program in the first place. Windows is not open-OS .

The Long and the Short: If you want to learn SDL, you''re gonna have to look at books centered on the 10% of operating systems that aren''t Windows.

~Thek
0

Share this post


Link to post
Share on other sites
heh i suppose ure right

time to find a bootleg copy of the book cuz im poor

"Those who serve no purpose, have no purpose"
0

Share this post


Link to post
Share on other sites
It's really simple to setup an SDL window for OpenGL rendering (all you really need to know is in the docs at www.libsdl.org).
This is an example:

          
SDL_Init(SDL_INIT_VIDEO);

// Set some attributes for the OpenGL rendering context.

// Look in the docs to see what other attributes there are.

// These are mostly treated as hints.

SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 5 );
SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 5 );
SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 5 );
SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 16 );
SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );

SDL_SetVideoMode(640, 480, 16, SDL_RESIZABLE | SDL_OPENGL);

// now we have a window to render in, so just setup

// an SDL event loop and start rendering stuff here...


// We must swap buffers using this function instead of the windows standard SwapBuffers

SDL_GL_SwapBuffers();

Of course you should add some error-checking and stuff.

Edited by - Dactylos on October 7, 2001 1:48:18 PM
0

Share this post


Link to post
Share on other sites
ic interestin...

can I still use the nehe code besides the windows specific stuff?

"Those who serve no purpose, have no purpose"
0

Share this post


Link to post
Share on other sites
You can use any OpenGL code to render in a window setup by SDL.
I think most of the NeHe tutorials are ported to SDL, look at the bottom of the tutorial pages for the download labeled "Linux/SDL". I haven''t tried running the SDL ports on Windows, but they should work, as long as they only use SDL and OpenGL.
0

Share this post


Link to post
Share on other sites
hehe what do you know, its there


what SDL files do i d/l?
the runtime and development ones for win32?


and where do i unzip them?


thx

"Those who serve no purpose, have no purpose"
0

Share this post


Link to post
Share on other sites
Download the developer files for whatever compiler you have, of course for Windows, since that's what you're using. Put the in your compiler's include and lib folders. Download the runtime files and put them in one of two places: (a) The same folder as your program's executable, or (b) the Windows system folder.

[Resist Windows XP's Invasive Production Activation Technology!]

Edited by - Null and Void on October 7, 2001 2:37:44 PM
0

Share this post


Link to post
Share on other sites
i did that but i cant compile the first nehe tut

it says SDL.h does not exist

do i have to include a lib or something?

"Those who serve no purpose, have no purpose"
0

Share this post


Link to post
Share on other sites
that is what i have
i have the correct files but it still wont work

"Those who serve no purpose, have no purpose"
0

Share this post


Link to post
Share on other sites
argh forget it, ill use win32
im more used to it anyway

thx for trying to help guy

"Those who serve no purpose, have no purpose"
0

Share this post


Link to post
Share on other sites