X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Frenders%2Fopengl%2Fr_textures.pas;h=ae9d02afa6596d878453ffb7d1dc87e6f8e43485;hb=656407d4bcc9419011375f19ad756d9ab7254f89;hp=56d2656c8c17e0e556e70e8525fc06e7e718537e;hpb=b6da48aa0bb1a872045a8339a4cd760652f8cc96;p=d2df-sdl.git diff --git a/src/game/renders/opengl/r_textures.pas b/src/game/renders/opengl/r_textures.pas index 56d2656..ae9d02a 100644 --- a/src/game/renders/opengl/r_textures.pas +++ b/src/game/renders/opengl/r_textures.pas @@ -47,6 +47,7 @@ interface TGLAtlas = class (TAtlas) private mID: GLuint; + mFilter: Boolean; public constructor Create (ww, hh: Integer; id: GLuint); @@ -56,6 +57,7 @@ interface function Alloc (ww, hh: Integer): TGLAtlasNode; overload; property id: GLuint read mID write mID default 0; + property filter: Boolean read mFilter write mFilter; end; TGLTexture = class @@ -65,6 +67,7 @@ interface mCols: Integer; mTile: array of TGLAtlasNode; mHints: TGLHintsSet; + mFilter: Boolean; public destructor Destroy; override; @@ -78,6 +81,7 @@ interface property cols: Integer read mCols; property lines: Integer read GetLines; property hints: TGLHintsSet read mHints; + property filter: Boolean read mFilter write mFilter; end; TGLMultiTexture = class @@ -206,6 +210,7 @@ implementation ASSERT(hh > 0); inherited Create(ww, hh); self.mID := id; + self.mFilter := false; end; destructor TGLAtlas.Destroy; @@ -378,6 +383,7 @@ implementation t.mCols := cols; // t.mLines := lines; t.mHints := hints; + t.mFilter := false; SetLength(t.mTile, cols * lines); for y := 0 to lines - 1 do begin