scale texture opengl 2 -


i have rectangle in opengl 2 , i'm using texture it. works, texture repeated on rectangle, , want adapt size of rectangle.

i have read in tutorial different parameters can set achieve this: https://open.gl/textures

in app using this:

        gles20.gltexparameteri(gles20.gl_texture_2d,                 gles20.gl_texture_min_filter, gles20.gl_linear);         gles20.gltexparameteri(gles20.gl_texture_2d,                 gles20.gl_texture_mag_filter, gles20.gl_linear); 

according tutorial should adapt size of texture fill rectangle, isn' it? clues why isn't working way?

actually stretching texture on rectangle works texture coordinates. if want repeat have set:

 gltexparameteri(gl_texture_2d, gl_texture_wrap_s, gl_repeat);  gltexparameteri(gl_texture_2d, gl_texture_wrap_t, gl_repeat); 

Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -