Android OpenGL-ES从一个点到另一个点绘制扩展线

时间:2014-07-30 14:51:39

标签: android opengl line draw

我是OpenGL的新手,但我最近读到使用它是为androis应用程序创建图形的更有效方法。我需要的是创建一个从A点开始并慢慢到达预定点B的线。我曾经用canvas - draw方法做到这一点,但它真的很慢而且对我来说似乎不对。

 package com.example.user.catchthefly_openglproject;

public class DrawTongue{
int StartX;
int StartY;
int StopX;
int StopY;


public DrawTongue(int StartX,int StartY,int StopX,int StopY){
    this.StartX=StartX;
    this.StartY=StartY;
    this.StopX=StopX;
    this.StopY=StopY;
}

public void DrawLine(){
      //here im supposed to draw an expanding line from spot A to spot B 
}

}

谢谢你的帮助:)请尽量提高分析能力,因为我真的很新!

0 个答案:

没有答案
相关问题