소스 검색

* fixed some issues with Delphis TBitmap and 32bit format

unstable
Bergmann89 9 년 전
부모
커밋
5885985675
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. +3
    -2
      glBitmap.pas

+ 3
- 2
glBitmap.pas 파일 보기

@@ -29,6 +29,7 @@ unit glBitmap;
// Delphi Versions
{$IFDEF fpc}
{$MODE Delphi}
{$MINENUMSIZE DEFAULT}

{$IFDEF CPUI386}
{$DEFINE CPU386}
@@ -429,7 +430,7 @@ type

property RGBInverted: TglBitmapFormat read fRGBInverted; //< suitable format with inverted RGB channels
property WithAlpha: TglBitmapFormat read fWithAlpha; //< suitable format with alpha channel
property WithoutAlpha: TglBitmapFormat read fWithAlpha; //< suitable format without alpha channel
property WithoutAlpha: TglBitmapFormat read fWithoutAlpha; //< suitable format without alpha channel
property OpenGLFormat: TglBitmapFormat read fOpenGLFormat; //< suitable format that is supported by OpenGL
property Uncompressed: TglBitmapFormat read fUncompressed; //< suitable format with uncompressed data

@@ -7092,7 +7093,7 @@ begin
pf24bit:
IntFormat := tfBGR8ub3;
pf32bit:
IntFormat := tfBGRA8ub4;
IntFormat := tfXRGB8ui1;
else
raise EglBitmap.Create('AssignFromBitmap - Invalid Pixelformat.');
end;


불러오는 중...
취소
저장