Results 1 to 10 of 179

Thread: nxPascal

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Quote Originally Posted by cst_zf View Post
    FrameBuffer in src_demos/delphi_demos reports an AV exception.
    Sorry i can't reproduce the AV with Delphi 7. However nxGL is not catching OpenGL errors for unsupported video cards/drivers at the moment.

    New addition to nxPascal and updated source download link. This is what i mentioned earlier, what i now call TQuadTexture. By adding nxGLExtra in uses-list lets you use memory optimized textures with rotation and scaling. TQuadTexture uses TGLTextureSet for holding 1-4 textures that are fitted for odd and any texture size, like 260x550 would define 4 power of 2 textures and use memory of 260x576 pixels (256+4 x 512+64).

    Normally using GL_NEAREST has no issues with scaling, but with linear filtering there is TDX-feature in use by default that makes visible line-errors between textures disappear.

    To use, simply have variable qt: TQuadTexture; somewhere, and
    Code:
    qt:=TQuadTexture.Create('test.png', true); // Loads with transparency on
    ..
    nx.SetColor(1,1,1); // Use white color
    qt.Draw(0, 0); // Simple draw in point (0,0). Textures are set automatically.
    Last edited by User137; 13-10-2011 at 08:07 AM.

Bookmarks

Posting Permissions

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