Giter Club home page Giter Club logo

Comments (11)

philchia avatar philchia commented on July 18, 2024

Also , is there any further update ?

from tiny-wings.

haqu avatar haqu commented on July 18, 2024

You don't need to know opengl to port it to mac. You need to create
new project in xcode using cocos2d mac template and copy/paste code.
Check this article:
http://cocos2dbook.com/cocos2d/cocos2d-on-the-mac-part1/

On Tue, Dec 13, 2011 at 5:56 PM, zgrubby
[email protected]
wrote:

I am not familiar with opengl,can you help me port this to mac?


Reply to this email directly or view it on GitHub:
#8

from tiny-wings.

philchia avatar philchia commented on July 18, 2024

I just create a project using cocos2d mac,then copy / paste the code,everything goes right except the texture rending,here is my screenshot

On Dec 14, 2011, at 11:52 AM, Sergey Tikhonov wrote:

You don't need to know opengl to port it to mac. You need to create
new project in xcode using cocos2d mac template and copy/paste code.
Check this article:
http://cocos2dbook.com/cocos2d/cocos2d-on-the-mac-part1/

On Tue, Dec 13, 2011 at 5:56 PM, zgrubby
[email protected]
wrote:

I am not familiar with opengl,can you help me port this to mac?


Reply to this email directly or view it on GitHub:
#8


Reply to this email directly or view it on GitHub:
#8 (comment)

from tiny-wings.

haqu avatar haqu commented on July 18, 2024

there is no screenshot in your comment

from tiny-wings.

philchia avatar philchia commented on July 18, 2024

Here is the screenshot
http://img39.imageshack.us/img39/2852/screenshot20111214at120.png

from tiny-wings.

haqu avatar haqu commented on July 18, 2024

ok, I'm going to figure it out now

from tiny-wings.

haqu avatar haqu commented on July 18, 2024

I found out that CGPoints shouldn't be used for vertices array. CGPoint consists of 2 CGFloats which are 8 bytes long on 64-bit Mac. However glVertexPointer expects array of GLfloats which are 4 bytes long.

from tiny-wings.

philchia avatar philchia commented on July 18, 2024

When run it with 32 bit Mac,it look like this:
http://imageupload.org/?d=CB4E034D1

from tiny-wings.

haqu avatar haqu commented on July 18, 2024

I just added and tested Mac support. Everything works like a charm. Check out latest update.

from tiny-wings.

philchia avatar philchia commented on July 18, 2024

Thank you so much
谢谢

from tiny-wings.

haqu avatar haqu commented on July 18, 2024

no problem

from tiny-wings.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.