Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tutorials > Tutorial Requests

Reply
 
LinkBack Thread Tools Display Modes
Old 12-02-2010, 07:42 AM   #1 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 8
diazlue is on a distinguished road
Default texture2D for game

i want to build a game like tetris, do i need to used texture2D.
and also what is Texture2D used for OpenGL ES.

please anyone can help me
diazlue is offline   Reply With Quote
Old 12-02-2010, 10:43 PM   #2 (permalink)
Registered Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 3,858
smasher will become famous soon enough
Default

Texture2D is a bit of example code from Apple for loading textures from files and drawing them to the screen using OpenGL.

If you're creating a game, you have two main choices - UIKit (simple to learn, generally slow and memory-intensive, 2D only) and OpenGL (difficult to learn, based on C, but draws fast and can draw in 3D.)

I usually suggest UIKit for making your first game, and using a 2D library like Cocos2D (a wrapper for OpenGL that lets you draw 2D sprites easily) after that. Learning OpenGL is great if you're going to write engines for a living, but you'll spend a lot of time on "plumbing."
__________________

Free Games!
smasher is offline   Reply With Quote
Old 12-14-2010, 08:14 PM   #3 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 8
diazlue is on a distinguished road
Default

thx you, now i m understand but what do you mean by plumbing ???
diazlue is offline   Reply With Quote
Old 12-14-2010, 10:38 PM   #4 (permalink)
Registered Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 3,858
smasher will become famous soon enough
Default

Quote:
Originally Posted by diazlue View Post
thx you, now i m understand but what do you mean by plumbing ???
I mean if you decide to write your own OpenGL code then you'll spend a lot of time writing code to render sprites, render text, load and cache textures, draw animations, and other behind-the-scenes work that is not related to gameplay. Those features are already built into Cocos2D and UIKit, so if you use those libraries you'll spend more time on gameplay programming and less time on "engine work."
__________________

Free Games!
smasher is offline   Reply With Quote
Old 12-14-2010, 11:24 PM   #5 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 8
diazlue is on a distinguished road
Default

thx for the patience you really a great help for amateur like me

buddy wot the diff with OpenLG and cocoa2D ?
diazlue is offline   Reply With Quote
Old 12-15-2010, 12:21 AM   #6 (permalink)
Registered Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 3,858
smasher will become famous soon enough
Default

OpenGL is difficult to learn and is based on C, but draws fast and can draw in 3D. Cocos2D is a wrapper for OpenGL that is, in my opinion, easier to learn. It already contains much of the "plumbing" code that I was talking about.
__________________

Free Games!
smasher is offline   Reply With Quote
Old 12-15-2010, 06:32 AM   #7 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 8
diazlue is on a distinguished road
Default

any kind of book or tutorial source you can recommend senior ??

emmm im study how to make mini game like tertis and bejeweled.

btw, how many years you been study this ?
diazlue is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 452
18 members and 434 guests
cgokey, dcool, Dj_kades, Droverson, iAppDeveloper, ipodphone, karatebasker, laureix68, LunarMoon, PapaSmurf, patapple, Paul Slocum, peterwilli, pipposanta, QuantumDoja, Rudy, SLIC, Sloshmonster
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,696
Threads: 94,139
Posts: 402,961
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jasper_muc
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:07 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0