Rockbox Development > Starting Development and Compiling
Learning How to Code
Phalangees:
Then I apologize. Does anyone know the answer to my question? Again, I'm sorry for breaking the forum rules.
Bagder:
Most of the code and Rockbox' inner workings are not documented outside the source files, but we have hundreds of contributors who are fairly familiar with it, and you can easily ask for help here, on IRC or on the dev mailing list.
A plugin can read a bmp by using the regular plugin API, see apps/plugin.h
Phalangees:
Thank you for your help Badger. I really appreciate.
If I have another question I'll just edit this post or ask on IRC.
Again, I'm sorry about breaking the forum rules.
elborak:
--- Quote from: Phalangees on August 24, 2007, 09:08:01 PM ---Thank you for your help Badger.
--- End quote ---
That's Bagder.
Phalangees:
My goal right now is to display a part of a simple bitmap image.
I'm making a little program called "coinmuncher.c." I have a bitmap called "coinmuncher_objects.240x320x16.bmp" inside of the apps/plugins/bitmaps/native folder. My code is starting to get huge so I won't post it all but could someone explain to me why I keep getting the compiler error: "undefined reference to `coinmuncher_objects'."
Here are some snipits of code that involve the bitmap.
This line is above the global variables.
--- Code: ---extern const fb_data coinmuncher_objects[];
--- End code ---
This line is my call to display the bitmap.
--- Code: ---rb->lcd_bitmap_transparent_part(coinmuncher_objects, 0, 30, 60, manX, manY, 20, 20);
--- End code ---
I'm a little bit confused about the whole thing and if it's something I'm doing that's completely idiotic then please let me know. I've looked through a bunch of other plugins that display bitmaps and I don't see why mine doesn't work.
Thanks for all your help.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version