codifies

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 202 total)
  • Author
    Posts
  • in reply to: Using large XML data – 3Mbyte file #6920

    codifies
    Participant

    easy done I spent ages looking at

    [/crayon]

    when it should have been

    [/crayon]
    in reply to: is there a more transparent way to use a C float* #6873

    codifies
    Participant

    wouldn’t this add over head ? – ie two calls per API call rather than 1 ? (but I might have misunderstood!)

    also I assume

    [/crayon]

    is more technically correct but out of interest will it actually make any difference ?

    in reply to: Instancing entities with components #6856

    codifies
    Participant

    its a shame “class” doesn’t have a clone method, that will create a deep copy, that and final methods would make some powerful and interesting things possible…

    in reply to: is there a more transparent way to use a C float* #6847

    codifies
    Participant
    [/crayon]

    ah hang on it itsn’t that const thing again is it?

    in reply to: is there a more transparent way to use a C float* #6846

    codifies
    Participant

    I just got errors about not being able to cast a float* for a bbfloat* or similar – there does seem to be differences between mingw gcc and more up to date versions (v6.3.0 here)

    I’ll try again and see if I can induce the error…

    in reply to: today I have been doing 3d physics (dynamics) #6845

    codifies
    Participant

    yeah, its just straight forward and works, pity about the wiki but ah well

    in reply to: Miscellaneous Procedural Generation Code #6836

    codifies
    Participant

    oh you mean in visual mode, I’ve had mine on the text tab, problem with that editor is if you accidentally click off that pane you loose everything in the text box….

    Yet to find a wordpress editor plugin that I *really* like…

    in reply to: Miscellaneous Procedural Generation Code #6826

    codifies
    Participant

    … go on give us a clue how you get to that screen, the screen shot is to small really to see whats going on

    is this post preferences?

    in reply to: Using large XML data – 3Mbyte file #6820

    codifies
    Participant

    definitely recommend you feed that xml file through an xml validator (theres a bunch of online ones)

    personally I feel that size of file you’re starting to get to the practical limits for xml in terms of being a robust data encapsulation, on mangled character can bork the whole data set in difficult to find / fix way…

    consider sqlite (you can always back up to SQL statements also a very portable way to convert the data)

    if you really have found an issue with a *valid* xml and tinyxml you should report it, also you might consider seeing if you can run it through tinyxml2

    in reply to: Instancing entities with components #6807

    codifies
    Participant

    casual grep-ping of the source doesn’t seem to show anything that would help.

    low level messing with memcpy would be basically useless aside from only ending up with a ptr to the new object (if it worked at all) the GC wouldn’t know about the new “class”

    Without seeing how you are creating these “components” its a little hard to guess whats going on.

    try using structs but as Mark suggests put the struct in another file (ideally on its own) why having its own “compilation unit” should help is just one of the “delights” of c++

    in reply to: webgl 2 (GLES3) hits firefox… #6799

    codifies
    Participant
    in reply to: Mark – thoughts on help (with example) #6794

    codifies
    Participant

    The only issue I can see linking samples directly to actual api methods (etc) is that how many examples in rosetta code http://rosettacode.org/wiki/Rosetta_Code wouldn’t fit into this model.

    While not all of these snippets may be cromulent its an absolutely invaluable trove as a learning aid.

    in reply to: How to convert a string to character? #6793

    codifies
    Participant

    ..ah of course, thanks…

    although I probably wouldn;t wrap in in an asc function what you’ve made there makes for a nice little example.

    in reply to: How to convert a string to character? #6782

    codifies
    Participant

    …yeah macros would be useful…

    anyone happen to know how to do the equivalent of chr$(n)

    …edit $ ah those were the days…..

    in reply to: How to convert a string to character? #6761

    codifies
    Participant

    you can only convert *one* character to a value

    [/crayon]
Viewing 15 posts - 1 through 15 (of 202 total)