Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have this code in openGL
C#
void dibujaCuadro(int x, int y, int z){//(1,50,5)

    glPushMatrix();
    glRotatef(10,0.1,0.0,0.0);//
    glTranslatef(0,5,-10);//
    glColor4ub(224, 224, 224, 255);//blanco
    dibujaCubo (x,y,z,22,22,1);// (1,50,5) fondo
glColor4ub(133, 133, 133, 255);//gris   dibujaCubo (25,30,1,2,50,3);
    dibujaCubo (x,y,z+1,2,23,2);
    dibujaCubo (x,y,z+1,23,2,2);
    dibujaCubo (x+21,y,z+1,2,23,2);
    dibujaCubo (x,y+21,z+1,23,2,2);
dibujaCubo (x+10,y+20,z-4,2,2,4);//(11,70,5,2,2,2) atrás
    glPopMatrix();
}

and what is that I occupy the front then appears me a picture (photo)


Original:


¿como Insertar una imagen en un cubo?

Tengo este codigo en openGL
void dibujaCuadro(int x, int y, int z){//(1,50,5)

glPushMatrix();
glRotatef(10,0.1,0.0,0.0);//
glTranslatef(0,5,-10);//
glColor4ub(224, 224, 224, 255);//blanco
dibujaCubo (x,y,z,22,22,1);// (1,50,5) fondo
glColor4ub(133, 133, 133, 255);//gris dibujaCubo (25,30,1,2,50,3);
dibujaCubo (x,y,z+1,2,23,2);
dibujaCubo (x,y,z+1,23,2,2);
dibujaCubo (x+21,y,z+1,2,23,2);
dibujaCubo (x,y+21,z+1,23,2,2);
dibujaCubo (x+10,y+20,z-4,2,2,4);//(11,70,5,2,2,2) atrás
glPopMatrix();
}

y lo que ocupo es que en la parte de enfrente me aparesca una imagen (Foto)

[edit]Added Google translation - OriginalGriff[/edit]
Posted
Updated 10-Sep-12 20:07pm
v2
Comments
JF2015 11-Sep-12 1:08am    
This is an english speaking forum. Please formulate your question in english so that more people can help you.
OriginalGriff 11-Sep-12 2:09am    
I'm sure English is not your native language, but it is the default language for this site.
In English, your question makes no sense at all.
Please, either try to find a better translation of your question to English, or find a site in your own native language, as they may be able to help you better than we can!
Use the "Improve question" widget to edit your question and provide better information.


Estoy seguro de que el Inglés no es su lengua materna, pero es el idioma predeterminado de este sitio.
En Inglés, la pregunta no tiene ningún sentido en absoluto.
Por favor, sea tratar de encontrar una mejor traducción de Inglés a su pregunta, o encontrar un sitio en su lengua materna, ya que puede ser capaz de ayudar a usted mejor que se puede!
Utilice la opción "Mejorar la pregunta" widget a editar tu pregunta y proporcionar una mejor información.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900