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

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -