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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -