Giter VIP home page Giter VIP logo

Comments (9)

natasha1403 avatar natasha1403 commented on September 27, 2024

I am also getting similar error? Could you find fix for the same?

from glview.

moozen-cn avatar moozen-cn commented on September 27, 2024

@natasha1403
the GLModelDemo example is running on my iphone, make a deep copy of the const varible.
i use memcpy() function.

from glview.

natasha1403 avatar natasha1403 commented on September 27, 2024

Can you please tell can I deep copy, I am new to xcode and objective C

from glview.

moozen-cn avatar moozen-cn commented on September 27, 2024

@natasha1403
like this

void *dst = malloc([data length]);
memcpy(dst, [data bytes], [data length]);
PVRTextureHeaderV2 *header = (PVRTextureHeaderV2 *)dst;

from glview.

natasha1403 avatar natasha1403 commented on September 27, 2024

but memcpy is used for copying only variable with type void. I am getting different errors as well:

/Users/natasha/Downloads/GLView-master/GLView/Models/GLModel.m:233:59: Sending 'const NSString *__strong' to parameter of type 'NSString * _Nonnull' discards qualifiers

from glview.

natasha1403 avatar natasha1403 commented on September 27, 2024

I am getting error in every class one after the other.. is there an end to these issues??

from glview.

moozen-cn avatar moozen-cn commented on September 27, 2024

@natasha1403

  • NO, memcpy() operate memory ,so anything is ok.
  • you create a new varible to receive the const NSString, then send it

from glview.

natasha1403 avatar natasha1403 commented on September 27, 2024

Thank you so much, finally this thing worked for me. But, none of the objs are loading, only demon got loaded for me. Did you face a similar issue?

from glview.

nicklockwood avatar nicklockwood commented on September 27, 2024

Fixed in 1.6.2

from glview.

Related Issues (20)

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.