[QUOTE=ZenX2;28463662]Now add 3d opengl control to it to free it from its 2-dimensional prison :v:[/QUOTE]
It's called Love2D for a reason. I'm going to add mouse.isOver() and what not, then work my way through the issue list.
[QUOTE=TerabyteS;28461927]Hmm, that could work.. I'll try[/QUOTE]
setPixel and getPixel work but aren't very fast. Best way is to create an RGBA array (4 bytes/sf::Uint8 per pixel) then use LoadFromPixels() to load that into the image. You can use GetPixelsPtr() to get a pointer to the pixels of an already existing image. Then just make your own methods to set a pixel on the RGBA array, and load it into the image when done.
I hope that helped.
[QUOTE=gparent;28462050]I'd read into it, otherwise you may experience crashes. Unfortunately I don't know enough to tell you how you should align, I just know there are various situations where you can't just ignore memory alignment and get away with it. There's an article about it in Effective C++, and Stack Overflow probably has a few questions about it.
Good luck.[/QUOTE]
What I was saying though was that I don't control the memory beyond handing out and collecting when done, it is the user's responsibility to allocate the correct amount of data, and use it properly. You could easily overwrite a memory descriptor and fuck it all up.
Memory alignment doesn't happen on this level, it happens on a much higher level, where it won't affect the memory manager.
[QUOTE=thomasfn;28462765]What would be impressive, if someone wrote a maze generator, where the solution to the maze - if you drew it - made the outline of a face or something.[/QUOTE]
[img]http://i53.tinypic.com/2a0b1pe.png[/img]
You are now impressed.
how do you guys even do this maze thing :(
[QUOTE=Richy19;28464392]how do you guys even do this maze thing :([/QUOTE]
This page has been an excellent source of information for me, as well as the Wikipedia page on maze generation.
[url]http://www.astrolog.org/labyrnth/algrithm.htm[/url]
[QUOTE=Nigey Nige;28460564] [IMG_thumb]http://i.imgur.com/bx1VP.jpg[/IMG_thumb]
[/QUOTE]
You should probably eat before naming your classes.
[QUOTE=Nigey Nige;28460564][img_thumb]http://i.imgur.com/bx1VP.jpg[/img_thumb][/QUOTE]
thenewboston I see?
[QUOTE=eXiv2;28454062]I can't find any real good tutorials for C++, does anyone have a favorite website or something for learning?[/QUOTE]
I liked XoaX.net, it's nice for beginners.
[IMG]http://i52.tinypic.com/rm39g7.gif[/IMG]
FANCY GIF VERSION !
[QUOTE=Xerios3;28465128][img_thumb]http://i52.tinypic.com/rm39g7.gif[/img_thumb]
FANCY GIF VERSION ![/QUOTE]
What were your reasons from moving to slimDX from XNA?
Whoa, 4Mb GIF.
[QUOTE=Richy19;28465164]What were your reasons from moving to slimDX from XNA?[/QUOTE]
XNA is too mainstream for me, I only use underground libraries that you never heard of.
[QUOTE=Xerios3;28465128][img_thumb]http://i52.tinypic.com/rm39g7.gif[/img_thumb]
FANCY GIF VERSION ![/QUOTE]
Pretty pretty shiny shiny~
does that tile?
[QUOTE=iNova;28465333]Pretty pretty shiny shiny~
does that tile?[/QUOTE]
one way to find out.
[img]http://i52.tinypic.com/rm39g7.gif[/img][img]http://i52.tinypic.com/rm39g7.gif[/img]
[img]http://i52.tinypic.com/rm39g7.gif[/img][img]http://i52.tinypic.com/rm39g7.gif[/img]
Nope.
Argh. Anyone else have the problem with java where it won't respond to keyboard input? I have made my Panel class extend JPanel and implement KeyListener, and when creating it in the JFrame, I .addkeylistener to it, but none of the 3 functions (keytyped, pressed, released) do anything when i press a key. Mouse events work though. Anyone?
[QUOTE=bobthe2lol;28466653]Argh. Anyone else have the problem with java where it won't respond to keyboard input? I have made my Panel class extend JPanel and implement KeyListener, and when creating it in the JFrame, I .addkeylistener to it, but none of the 3 functions (keytyped, pressed, released) do anything when i press a key. Mouse events work though. Anyone?[/QUOTE]
Wrong thread.
[QUOTE=DevBug;28466994]Wrong thread.[/QUOTE]
Well, sorry Mr. superiority complex.
[QUOTE=bobthe2lol;28467263]Well, sorry Mr. superiority complex.[/QUOTE]
Look at my posts, now look at yours. Look at my content, now look at yours, back to me. Now I'm on a horse.
[QUOTE=DevBug;28467441]Look at my posts, now look at yours. Look at my content, now look at yours, back to me. Now I'm on a horse.[/QUOTE]
Firstly, I don't get the refrence. Secondly, this just proves my point. "My content is better than your content! My posts are better than your posts!" etc. I'll leave now, as this might be seen as flaming or what have you.
[img]http://img508.imageshack.us/img508/5387/openglawrg.png[/img]
It works, but do I really need multiple instances of the same vertices to get the textures to work correctly ([url]http://www.facepunch.com/threads/1053117-What-do-you-need-help-with-v2?p=28461950&viewfull=1#post28461950[/url])
What planning program(s) do you guys use? Or do you just think about it and start writing code? I have tried planning what I am going to do before coding in the past but it never translates to code. I always end up completely changing from what I had planned.
[QUOTE=high;28467860]What planning program(s) do you guys use? Or do you just think about it and start writing code? I have tried planning what I am going to do before coding in the past but it never translates to code. I always end up completely changing from what I had planned.[/QUOTE]
I think about it and write code. If it requires optimising or harder maths, I'll solve it/write it out with pencil and paper.
I just thought, in a value incremented by 1, the percentage greater than the last increment is:
(n/n-1)*100
woah man. So that means the second volume 'click' is twice as loud as the first.
[editline]6th March 2011[/editline]
Unless they add at a linear rate, woaaah stupid me.
[QUOTE=Jawalt;28468090]I just thought, in a value incremented by 1, the percentage greater than the last increment is:
(n/n-1)*100
woah man. So that means the second volume 'click' is twice as loud as the first.
[editline]6th March 2011[/editline]
Unless they add at a linear rate, woaaah stupid me.[/QUOTE]
Isn't hearing/volume on a logarithmic scale anyways?
[QUOTE=high;28467860]What planning program(s) do you guys use? Or do you just think about it and start writing code? I have tried planning what I am going to do before coding in the past but it never translates to code. I always end up completely changing from what I had planned.[/QUOTE]
I have two whiteboards in my room (36" x 24", one vertical, the other horizontal), that I use for all my planning / todos / etc.
Our school also has massive whiteboards, those are always nice if you have some school friends you're programming with. It's how we came up with the basic strucutre for our game, and that structure is almost entirely intact with our current code.
[QUOTE=sim642;28454186][url]http://learncpp.com[/url] seems good for beginners.[/QUOTE]
Little late, but I sucked really hard at coding and didn't understand shit. I went there and I'm actually coding stuff that works and I understand things a little better now.
[QUOTE=high;28467860]What planning program(s) do you guys use? Or do you just think about it and start writing code? I have tried planning what I am going to do before coding in the past but it never translates to code. I always end up completely changing from what I had planned.[/QUOTE]
paper + pen
Sorry, you need to Log In to post a reply to this thread.