Rev 4517 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4517 | Rev 4523 | ||
---|---|---|---|
Line 13... | Line 13... | ||
13 | EGLSurface draw, read; |
13 | EGLSurface draw, read; |
14 | int winx, winy; |
14 | int winx, winy; |
Line 15... | Line 15... | ||
15 | 15 | ||
16 | float dst_xscale, dst_yscale; |
16 | float dst_xscale, dst_yscale; |
17 | float *vertices = render->vertices; |
17 | float *vertices = render->vertices; |
18 | float *texcoords = render->texcoords; |
18 | float *texcoords = render->tc_src; |
Line 19... | Line 19... | ||
19 | int r, b; |
19 | int r, b; |
20 | 20 | ||
Line 49... | Line 49... | ||
49 | GL_NEAREST); |
49 | GL_NEAREST); |
50 | glTexParameteri(GL_TEXTURE_2D, |
50 | glTexParameteri(GL_TEXTURE_2D, |
51 | GL_TEXTURE_MAG_FILTER, |
51 | GL_TEXTURE_MAG_FILTER, |
52 | GL_NEAREST); |
52 | GL_NEAREST); |
Line 53... | Line 53... | ||
53 | 53 | ||
54 | glVertexAttribPointer(1, 2, GL_FLOAT, GL_FALSE, 2 * sizeof(float),render->texcoords); |
54 | glVertexAttribPointer(1, 2, GL_FLOAT, GL_FALSE, 2 * sizeof(float),render->tc_src); |
Line 55... | Line 55... | ||
55 | glEnableVertexAttribArray(1); |
55 | glEnableVertexAttribArray(1); |
56 | 56 |