OpenGl ES 2.0

Problems with Canvas, OpenGL, etc...

OpenGl ES 2.0

Postby [MI_nor] » Mon Mar 14, 2011 7:12 pm

Hi, can somebody write a simple example to implement the OpenGL ES 2.0 in android application? I was searching on the Internet, information is very small.
[MI_nor]
Freshman
Freshman
 
Posts: 3
Joined: Sat Mar 12, 2011 4:12 pm

Top

Re: OpenGl ES 2.0

Postby emesaeler » Mon Apr 04, 2011 6:43 pm

OpenGL ES 2.0 guides seem to be very rare, but I finally found one.

http://androidgames.dk/wordpress/?p=34
emesaeler
Freshman
Freshman
 
Posts: 3
Joined: Thu Mar 24, 2011 3:59 pm

Re: OpenGl ES 2.0

Postby zeroARM000 » Tue Apr 05, 2011 10:12 am

ok, hope this title brings me luck!

Hi guys!, i'm making a word search game right now... I've done with the algorithm and so on, but I'm facing new problem...

I want to paint the characters that are being choosen by user to match a word. actually, I'm using gridview to placed the characters...

Here's the code

Code: Select all
public class GridAlpha extends Activity{
int BOARD=8;
String[]rep = new String[50];
String[]def = new String[64];
String LETTERS = "abcdefghijklmnopqrstuvwxyz";
String[][]square = new String[8][8];

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    KamusDbAdapter x = new KamusDbAdapter(getApplicationContext());
    x.open();
    rep = x.playWord();
    x.close();


    Random round = new Random();int[]rec=new int[10];int m=0;
    for(int i=0; i<50; i++){
        //algorithm section, used to place the words inside the grid per char
    }
    //additional logic, used to store the char in string that will be use in gridview
    //Log.v("CC",String.valueOf(cc));

    ArrayAdapter<String> ad = new ArrayAdapter<String>(this,R.layout.form,def);
    GridView grid=(GridView)findViewById(R.id.grid);
    grid.setAdapter(ad);

    grid.setOnItemClickListener(new OnItemClickListener(){
        @Override
        public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
                long arg3) {
            String test = (ad.getItem(arg2)).toString();
            Log.v("CAPTURE",test);
        }
    });

    ListView wordlist = (ListView)findViewById(R.id.wordlist);
    ArrayAdapter<String> showWord = new ArrayAdapter<String>(this,R.layout.form2,store);
    wordlist.setAdapter(showWord);

}

}


I think that's all that I can explain right now... if you are confuse with my question, just go to the screenshot link below

http://stat001.ameba.jp/user_images/201 ... 405137.png

*I just want to paint the selected words inside the gridview, that's all...

Best regards,
zeroARM000
Freshman
Freshman
 
Posts: 5
Joined: Tue Apr 05, 2011 10:01 am

Top

Return to Android 2D/3D Graphics - OpenGL Problems

Who is online

Users browsing this forum: No registered users and 5 guests