I am attempting to make a Windows program in SDL, which was going alright until I made it a dual-window project (using the SDL_CreateWindow () function, with the SDL_Window object).
Before I did...
Type: Posts; User: samGwilliam
I am attempting to make a Windows program in SDL, which was going alright until I made it a dual-window project (using the SDL_CreateWindow () function, with the SDL_Window object).
Before I did...
Thanks very much, I managed to get it sorted in the end. I started a fresh project small - at first a "Hello World" project to which I added the line #include <mmsystem.h>, then declared the callback...
Thanks very much, I managed to get it sorted in the end. I started a fresh project small - at first a "Hello World" project to which I added the line #include <mmsystem.h>, then declared the callback...
I am trying to write a simple Windows program in Code::Blocks (as a foundation to write a larger program) but everything I try just doesn't compile for a variety of cryptic reasons.
For instance...
Yeah sorry, I was just throwing my toys out of my pram. This is so frustrating though - all I'm seeing are seemingly unnecessary barriers to the pure pursuit of coding. I did some stuff with Arduino...
And the image is, for some reason, too small to read. No idea why that is, sorry. Oh, and, while I'm trying to read the error messages the, after about 12 seconds, the IDE spontaneously opens some...
I found the header file so I thought I'd try and get the winmm.lib file to work with it. I did some Googling and discovered that Mingw has its own version called winmm.a so I put the command line...
Thank you. I gave this a try: MIDI-in sample program for Win32 (using winmm.lib) * GitHub
And, just like I knew was going to happen, it complained that it couldn't find SDKDDKVer.h. I've never...
Can anyone help me with reading MIDI input (from a controller keyboard or similar)? I want to write a software synthesiser, I'm having trouble with getting the audio part working (it seems the...
Do you mean statically link to a DLL (as in go to the compiler options and set the path containing the DLL, as opposed to the compiled app looking for the DLL at runtime)? The problem I'm having is...
That would explain the lack of .lib files. I definitely never had this problem when using Port Audio a few years back. I think I was using v17 or v18, though, now I'm using v19 and maybe they expect...
The default compiler for C::B, it seems, is the GNU GCC compiler so this will be the one I'm using. Also something called MinGW.
It seems that I should be giving Code::Blocks the path of some .lib files - but I searched the Port Audio directory and found no .lib files at all. I know I've managed to get this to work in the...
I've installed the SDK and set the right folder for the include path but it's giving me errors, saying undefined references to functions.
I know what the problem is - something to do with the...
I really have to try this multithreading lark sometime.
That's pretty cool.
Did you store the number as a byte per digit and perform the carrying manually or something?
Signed ints use the most significant bit to indicate polarity, so the shift will change that.
True.
I do know OpenGL, but can't really be bothered to use it for 2D. I wouldn't even know how to off the top of my head - would you just use textured polygons as sprites?
That would be a tough one - much more complex than the cube because with the cube all of the moves can be done at anytime - with the Magic there would be far more constraint. If I had one in front of...
It's pretty good. Well done.
Isn't that the Sieve of Eratosthenes or something?
A (former) friend of mine thought he discovered that himself and even started writing some wanky 'paper' about it, crowbarring in sine waves for...
I'm writing a 2D game that uses the BitBlt function - it's pretty fast even though I haven't fully optimised yet.
Even better.
Direction and velocity could be scalar variables or a vector - it would definitely make sense to store the resulting X and Y deltas as a vector though (and only calculate when the angle changes).
...
Your while condition will most likely make the second if fail. You correctly exit the loop when you discover it's not prime, so at that point why not just set a flag (bool isPr or something), then...