Mit diesem Classen-Definition kommt eine Fehlermeldung.
Kompilieren lässt sich der Code ohne Probleme.
Code: Alles auswählen
  TKoerper = class(TObject)
  private
    FTexCoordx: single;
    FTexCoordy: single;
    Kreistab: array of record
      a, b: GLfloat;
    end;
    VBOvertex, VBOnormale, VBOTexturvertex: GLuint;
    VAO: GLuint;
    TexturID: GLuint;
    FColor: TVector4f;
    FSektoren: integer;
    FTexturen: boolean;
    TexturData: record
      Width, Height: GLuint;
      Data: array of GLuint;
    end;
    procedure KreisTabelleBerechnen;
    procedure Ring(r1, r2, h1, h2: single; vPos: integer);
    procedure SetColor(AValue: TVector4f);
    procedure SetSektoren(AValue: integer);
    procedure SetTexCoordx(AValue: single);
    procedure SetTexCoordy(AValue: single);
  protected
    FVertex: TVertex3fArray;
    FNormale: TVertex3fArray;
    FTexturVertex: TVertex2fArray;
  public
    OpenGL: TOpenGL;static;
    constructor Create; virtual;
    destructor Destroy; override;
    property Vertex: TVertex3fArray read FVertex;
    property Normale: TVertex3fArray read FNormale;
    property TexturVertex: TVertex2fArray read FTexturVertex;
    property Color: TVector4f read FColor write SetColor;
    property Sektoren: integer read FSektoren write SetSektoren;
    property TexCoordx: single read FTexCoordx write SetTexCoordx;
    property TexCoordy: single read FTexCoordy write SetTexCoordy;
    procedure WriteTextures;
    procedure WriteTextures(Bitmap: TBitmap);
    procedure WriteVertex;
    procedure Draw(WorldMatrix: TMatrix);
  end;  Code: Alles auswählen
 TKoerper = class(TObject)
  private
    FTexCoordx: single;
    FTexCoordy: single;
    Kreistab: array of record
      a, b: GLfloat;
    end;
    VBOvertex, VBOnormale, VBOTexturvertex: GLuint;
    VAO: GLuint;
    TexturID: GLuint;
    FColor: TVector4f;
    FSektoren: integer;
    FTexturen: boolean;
    TexturData: record
      Width, Height: GLuint;
      Data: array of GLuint;
    end;
    procedure KreisTabelleBerechnen;
    procedure Ring(r1, r2, h1, h2: single; vPos: integer);
    procedure SetColor(AValue: TVector4f);
    procedure SetSektoren(AValue: integer);
    procedure SetTexCoordx(AValue: single);
    procedure SetTexCoordy(AValue: single);
  protected
    FVertex: TVertex3fArray;
    FNormale: TVertex3fArray;
    FTexturVertex: TVertex2fArray;
  public
    //  OpenGL: TOpenGL;static;
    //constructor Create; virtual;
    //destructor Destroy; override;
    //property Vertex: TVertex3fArray read FVertex;
    //property Normale: TVertex3fArray read FNormale;
    //property TexturVertex: TVertex2fArray read FTexturVertex;
    //property Color: TVector4f read FColor write SetColor;
    //property Sektoren: integer read FSektoren write SetSektoren;
    //property TexCoordx: single read FTexCoordx write SetTexCoordx;
    //property TexCoordy: single read FTexCoordy write SetTexCoordy;
    //procedure WriteTextures;
    //procedure WriteTextures(Bitmap: TBitmap);
    //procedure WriteVertex;
    //procedure Draw(WorldMatrix: TMatrix);
  end;    
 

 Verein
Verein 
 Links
Links Suche
Suche