MCQs > IT & Programming > Android Game Development > Study the method given below and answer the following question: public Triangle() { 1.ByteBuffer vertexByteBuffer = ByteBuffer.allocateDirect(vertices.length * 4); 2. vertexByteBuffer.order(ByteOrder.nativeOrder()); 3. vertexBuffer = vertexByteBuffer.asFloatBuffer(); 4. vertexBuffer.put(vertices); 5. vertexBuffer.position(0); }

Android Game Development MCQs

Study the method given below and answer the following question:

public Triangle() {

1.ByteBuffer vertexByteBuffer = ByteBuffer.allocateDirect(vertices.length * 4);

2. vertexByteBuffer.order(ByteOrder.nativeOrder());

3. vertexBuffer = vertexByteBuffer.asFloatBuffer();

4. vertexBuffer.put(vertices);

5. vertexBuffer.position(0);

}

Which code line allocates memory from byte buffer?


Answer

Correct Answer:

3

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Android Game Development Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Android Game Development Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it