I've tried to get my SDL/OpenGL app to work with Lazarus but I've ran into problems.

I can't seem to be able to use any classes like TBitmap etc. My texture loading routines use these and they work just fine in Delphi whether I have a pure SDL application or normal app with forms.

Any workarounds for this or do I have to write my own texture loading routines without the help of TBitmap class for all image formats (BMP, TGA, JPEG, PCX etc.) that I use?