Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Create OpenGL Texture from TBitmap

  1. #11
    Thank you very much, guys!

    Maybe part of the code I did was right, I discovered that when the TNewBitmap is being created, the functions GetWidth and GetHeight used by the properties Width and Height are not being created(a message is telling that both methods are abstract).

    I do not know why, even calling the constructor of the TNewBitmap ancestor (inherited Create), these methods are still abstract. Probably the data which I was storing to make the texture was a 0x0 matrix!!!

    I will check it out, and I will post the result here!

  2. #12
    Best result so far! A blurry texture! The previous problem was really about the matrix being passed as 0x0 to the CreateTexture procedure.

    and should look like this:

  3. #13

Page 2 of 2 FirstFirst 12

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts