The compiler is case-sensitive, so since your "ready.h" file code says Ready, you'll have to the LoadTexture code to a capital "R" as well, otherwise, the compiler will say it is undeclared. Example: #include "gfx/Ready.h" u8 *tex_ready=GRRLIB_LoadTexture(Ready); Case-sensitive is a pain sometimes, but it just means you have to pay closer attention to your code.by RazorChrist - Coding
I think what's missing is your width and height variables. Try adding this to the inline void GRRLIB_DrawImg section of your GRRLIB.h file, after your xpos,ypos: u16 width, u16 height Then add your actual width and height variables to the GRRLIB_DrawImg part of your code.by RazorChrist - Coding
Again, that's the different in syntax between version 3.0 and 4.0, I believe.by RazorChrist - Coding
Oh....I bet you're using the newest version of GRRLIB, which doesn't use GRRLIB_DrawImg. I'm using version 3.0. Sorry bout that....can't believe I didn't think about that earlier.by RazorChrist - Coding
Ok, on this line: GRRLIB_DrawImg(x,y,height,width,tex_image,0,1,1,255); You should be putting the actual x,y,height,width values in. Example, instead of the above, it should be something like: GRRLIB_DrawImg(0,0,640,480,tex_image,0,1,1,255); And the "image.h" should be whatever the name of the image is you're including...I was just using "image" as an example name.by RazorChrist - Coding
Instead of using JPEG, use PNG images, convert to .h with WiiBuilder 1.0, then use the following code to load the image: #include "gfx/image.h" u8 *tex_image=GRRLIB_LoadTexture(image); GRRLIB_DrawImg(x,y,height,width,tex_image,0,1,1,255); When you're converting the PNG with WiiBuilder, if you happen to get a warning that says "not a multiple of 4", just check the image dimensions anby RazorChrist - Coding
Quoteg_manwhen i originally looded at the #include i it had a /./ , or /../ , i can't remember is that how you do it, i don t want to mess with my files that much, but i will if i hav to. That was most likely the problem. I don't think it'll work if you use /./ or /../. Of course, I've never tried it that way, so it might.by RazorChrist - Coding
Here's how my directory structure looks: - Makefile - lib (dir) - libpng.a - source (dir) - gfx (dir) - image.h - GRRLIB (dir) - GRRLIB.c - GRRLIB.h - libpng (dir) - pngu (dir) - pngu.c - pngu.h - png.h - pngconf.h - main.cpp Then, in your Makefile, your sources line would look like this: SOURCES := source source/gfx source/GRRLIB source/libpng source/by RazorChrist - Coding
Quoteg_mani know that, but how do i call the dir, call might be the wrong word, but how do i get there, i wont be able test anything cause my parents took my computer away Oh snap, that sucks. Anyway, what do you mean by "call the dir"? And which dir in particular are you trying to "call"?by RazorChrist - Coding
Your Makefile should be in the level UP from where your main.c is.by RazorChrist - Coding
Add the following under the rest of your #include files: extern "C" { #include "GRRLIB/GRRLIB.h" }by RazorChrist - Coding
It's because of this line in your Makefile: LIBDIRS := $(CURDIR) Make a folder in the directory with your Makefile, called lib, and copy the libpng.a file into it, then recompile, see if that helps.by RazorChrist - Coding
Trying changing this: VIDEO_Init(); WPAD_Init(); GRRLIB_Init(); rmode = VIDEO_GetPreferredMode(NULL); xfb = MEM_K0_TO_K1(SYS_AllocateFramebuffer(rmode)); console_init(xfb,20,20,rmode->fbWidth,rmode->xfbHeight,rmode->fbWidth*VI_DISPLAY_PIX_SZ); VIDEO_Configure(rmode); VIDEO_SetNextFramebuffer(xfb); VIDEO_SetBlack(FALSE); VIDEO_Flush(); VIDEO_WaitVSync(); ifby RazorChrist - Coding
In file included from d:/Homebrew/mystuff/Pong/source/GRRLIB/../libjpeg/jpeglib.h:26 I'm assuming from this you're trying to load a jpg file? I don't use jpegs in my project at all, all of my graphics are .PNG which are converted to .h files using WiiBuilder 1.0. I think last time I tried to use the jpeglib, it didn't work for me either. d:/Homebrew/mystuff/Pong/source/GRRLby RazorChrist - Coding
What I had to do was put the GRRLIB include folder and the libpng include folder inside my project's SOURCE folder, then in my Makefile, my SOURCES line looks like this: SOURCES:= source source/gfx source/GRRLIB source/GRRLIB/fonts source/libpng source/libpng/pnguby RazorChrist - Coding
Thanks for the replies. I'll try Scanff's method of renaming the 'fb' in glut.c first, and see if that helps. If not, I'll try changing them to static. I'll let you know how it goes.by RazorChrist - Coding
Okay, I see what you're talking about, however, when I try to remove the u32 fb = 0; line from either file, it causes the file it was removed from to not compile. Would it be easier to recode everything using OpenGL and drop GRRLIB completely?by RazorChrist - Coding
Not sure if anyone has tried this, but basically what I'm doing is, the main of the program is ran in GRRLIB, but when you start the game, it's supposed call all of my OpenGL functions. But, I'm getting an odd error when I try to compile: c:/projects/wii/game/lib\libgl2gx.a(glut.o): In function `glutGet': c:/projects/wii/gl2gx/libogc/../source/glut.c:208: multiple definitionby RazorChrist - Coding
QuoteArikadoThe one glaring error I see in your code is that you use the variables rumbletime and rumble_time. Thats two variables, you should only be using one. Yeah that was a typo that was fixed in the code. QuoteArikadoIf you're getting a black screen, thats from something else in your program and not my rumble code. So I dont think I can help you with that, sorry. This was due toby RazorChrist - Coding
Okay, sorry, I'm a bit of a noob on Wii programming. Let me post my code and see if I have it in the right place, cus right now, I'm getting compiling errors. Defined at top of pointer.c file: int rumbletime = 0 Rumble function in pointer.c: if (selection != last_selection && selection != 0) { rumble_time = 1; WPAD_Rumble(WPAD_CHAN_0, 1); } Not exactly sure where to put this,by RazorChrist - Coding
Hi, I've having a bit of trouble getting the rumble on my menu selections working correctly. It works, however, it doesn't stop rumbling until you make a selection or the pointer is no longer hovering over a selection. For example: if pointer is highlighting an option = rumble, but doesn't stop if pointer is highlighting an option + press A = rumble stop if pointer not highlightby RazorChrist - Coding