Add textures
This commit is contained in:
parent
5723b91b32
commit
7bfad8711b
25 changed files with 407 additions and 104 deletions
22
src/graphics/graphics-library/texture/texture-options.ts
Normal file
22
src/graphics/graphics-library/texture/texture-options.ts
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
export enum WrapOptions {
|
||||
CLAMP_TO_EDGE = 'CLAMP_TO_EDGE',
|
||||
REPEAT = 'REPEAT',
|
||||
MIRRORED_REPEAT = 'MIRRORED_REPEAT',
|
||||
}
|
||||
|
||||
export enum FilteringOptions {
|
||||
LINEAR = 'LINEAR',
|
||||
NEAREST = 'NEAREST',
|
||||
}
|
||||
|
||||
export interface TextureOptions {
|
||||
wrapS: WrapOptions;
|
||||
wrapT: WrapOptions;
|
||||
minFilter: FilteringOptions;
|
||||
maxFilter: FilteringOptions;
|
||||
}
|
||||
|
||||
export type TextureWithOptions = {
|
||||
source: TexImageSource;
|
||||
overrides: Partial<TextureOptions>;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue