| |
| |
| |
|
Page: 1 2
Comments:
<0> ty <1> SDL_ttf is refusing to open fonts -.- <2> is there any way to do SDL_LoadBitmap etc with a memory pointer as a source? <1> given that it takes a const char *, I don't think so <1> You'd have to rewrite the function <3> See if SDL_CreateRGBSurfaceFrom will do what you're looking for. <3> lerc_ that is.^ <2> Acutally Found what I was looking for with SDL_LoadBMP_RW <1> TTF_Open still isn't working for me :( <2> No help from me sorry (2 day SDL noob). <1> oh wait <1> ffs <1> *glares at sample code* <3> what's going wrong? <1> it had if (!font) <1> I change to if (font != NULL) and it works
<1> or not <1> missed the ! <1> TTF_Open refuses to open a font <1> the file is there <3> what's TTF_GetError report? <1> sec <1> nothing <3> paste your code into a pastebin <1> Warning: unlink(/home/pastebin/public_html/../cache/recent): No such file or directory in /home/pastebin/lib/pastebin/db.mysql.cl***.php on line 243 <1> Not very heartening XD <1> Sec, I'll copy the sourcefile onto my publci_html <1> public_html* <1> http://gotenxiao.servehttp.com/~goten/other/sdltest.cpp <1> http://gotenxiao.servehttp.com/~goten/other/sdltest.html if you want syntax highlighting <4> GotenXiao: your initFont() has a missing return 0; and the test should be if (font == NULL) or just if (!font) <1> I literally just spotted the != <1> and thanks about the return, hadn't spotted that one <5> kendrick: hi <6> What? <6> SDL is shareware now?! <6> too tired <7> hehe <8> :P <9> has there been an issue with 64bit SDL? <9> and... Mono <9> (or .GNU) <10> re <11> Archon: boo <9> juvinious: who are you? <11> nobody <9> juvinious: ok... you remind me of someone from another channel <8> Does SDL change the way the program calculates with floats? <8> Because I get different answers depending on whether I initialize the SDL-window or not <1> o.O <12> O-o <1> What're you calculating? <8> physics simulation <8> mostly with doubles actually <12> are you comparing equality of doubles? <8> nope I'm not <8> the simulation just goes in a different way due to cumulative calculating errors without the window <8> errors as differences <8> with screen it takes 25.565 seconds (with 5 ms time steps), without it does 25.570 <8> and if I take a longer simulation, the error is horrible <12> you're not dealing enough well with your timing <12> are you relying on SDL_GetTicks? <8> nope <8> SDL_GetTicks only tells me when to calculate the next physics step, but isn't used for anything else <13> The floats are larger precision in registers. Using different code might force different register usage and force some calcs to mem temporarily where they drop precision. <8> mmh.. <8> this is really weird <8> lercOsX: well.. <13> in general, Floating point is usually defined to be within a levelk of precsision but not neccisarily determanistic. <8> well.. <8> are there, like, any flags to feed gcc with, to get a dirty workaround of this? <8> *for <13> To force determanism you have to quantize to a level of precision below the defined accuracy. <8> hmm :b <13> for instance any values you keep to 100 significan digits you chop off at 80 significant digits periodically.
<8> urgh.. <8> that's not fun <13> As long as you do the quantization often enough that errors don't accumulate up to the 80th significan digit it'll stay deterministic. <13> Has to be done. You'll find AMD and intel can be quite different. Not to mention PPC. <8> okay <8> is there an easy way to do that or do I need to go anding the bits or something? :) <8> are you sure that SDL doesn't change the rounding mode? <13> it may do. But I've had things like Sound card drivers do that to me when they play sounds. (grumble creative labs) <8> oh <8> okay, I found out how to check which mode is in use but have no idea of how to change it <8> if it's even possible <8> well, I suppose it isn't <8> okay, got it <7> hehe: -ChanServ- [#SDL] Welcome to #sdl - The Offical Simple DirectMedia Layer Channel <7> offical <12> it is <7> probably need to s/offical/official/ :) <12> ah, true :) <12> that's how I used to typo it too <14> hmm... <14> how do i rotate a surface ? <14> i don't see any function to let me do that O_O <14> this is gonna be uber lame if i can't <15> that's outside of SDL's scope <14> are you serious. <14> how would i do it then ? <14> i'm gonna have to kill someone if i can't rotate a surface <9> ChrOnX: you could use OpenGL to rotate a quad <15> per hand or via one of the extension libs that does it <14> what lib lets me do it ? <14> any ideas ? <15> i wont look it up for you <9> ChrOnX: do you mean, rotate a surface that is blitted to the screen, or to shift the suface's source? <14> i don't know what to look for <14> i need to rotate the surface that is being drawn <15> you are either lazy or stupid <14> thanks <14> for that constructive criticism <15> you didnt even spend 20 seconds looking for it before asking <15> which is a sure sign that you don't value other people's time <9> ChrOnX: i don't use SDL but if it doesn't have a rotate drawing function then perhaps you should invest interest in OpenGL or Allegro <15> if you want help you better show some effort of your own as well <14> i can't find any libs that allow for rotation <14> all i see is "surface rotation is expensive do make a sprite sheet with each rotation on it and just load a specific part of it for a rotation" <14> that won't help me because i need every degree <16> can't you use SDL_gfx and rotozoom? <14> hmm i can't find the download <14> for SDL_gfx <16> http://www.ferzkopp.net/Software/SDL_gfx-2.0/ <14> sweet <0> that looks nice :D <16> http://mureakuha.com/paste/?37f75c85ec302869fda7d6b629793404 <16> http://mureakuha.com/paste/?6f39e430e819a5c289834fabcf9529e1 <16> why does my app crash? <14> which paste ? <16> well, both <14> what do you mean by "crash" ? <14> just stop responding ? <14> or runtime error ? <16> I'm running it on win xp <14> what happens ? <16> it just asks if I want to send some crash report to microsoft <16> you know <14> run time error <14> hmm <16> and the worst thing is that I haven't got a clue why it crashes <14> i think its somewhere in Free_Surface <1> anyone done blitting from SDL_Surfaces to OpenGL textures? <15> NitrotriggeR: run it through a debugger and find out in which line <15> you don't blit from surfaces to textures ... but you can upload the one as the other <15> there's an example for that in the source dist test directory ... a few SDL ports of the nehe tutorials show it as well <3> GotenXiao, yes, check this page: http://www.gamedev.net/community/forums/topic.asp?topic_id=396565 <16> rnx: Access Violation, Segfault <15> NitrotriggeR: the line ... not the type
Return to
#sdl or Go to some related
logs:
#asm remove public/pickup: Permission denied configuring xming coLinux AidyMole #css #suse #fedora postfix overriding MX soap::data::complextype example party mode ubuntu
|
|