android.renderscript.renderscriptGL问题 [英] android.renderscript.renderscriptGL issue

查看:131
本文介绍了android.renderscript.renderscriptGL问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试在android上创建动态壁纸.
我正在使用下面提到的教程.
http://mobile.tutsplus.com/tutorials/android/getting-started-with-renderscript-on-android/
我已经复制了源代码,还安装了支持库.
但是,我在Windows系统的程序文件中的SDK文件夹中找不到支持v8 :(
在我更改项目属性并添加

I've been trying to create a live wallpaper on android.
I'm using the tutorial mentioned below.
http://mobile.tutsplus.com/tutorials/android/getting-started-with-renderscript-on-android/
I've copied the source code and also installed the support libraries.
I however cannot find support v8 in my SDK folders located in my program files in the windows system :(
These imports work for me after i changed my project properties and added

renderscript.target=18

renderscript.support.mode=true

sdk.buildtools=18.1.0


import android.renderscript.Allocation;

import android.renderscript.Element;

import android.renderscript.Float2;

import android.renderscript.Matrix4f;

但是这些导入仍然无效.

but these imports still do not work.

import android.renderscript.Mesh;

import android.renderscript.ProgramFragment;

import android.renderscript.ProgramFragmentFixedFunction;

import android.renderscript.ProgramRaster;

import android.renderscript.ProgramRaster.CullMode;

import android.renderscript.ProgramStore;

import android.renderscript.ProgramVertex;

android.renderscript.RenderScriptGL;

如何使它们工作:(.我已经尝试了一段时间.

How do I get these to work :(. I have been trying for a while.

现在在我的sdk Extras中写我可以看到对v4的支持,但对v8则没有任何帮助: 因此,由于该导入,android.support.v8也将失败.

Write now in my sdk extras I can see support for v4 but nothing for v8 :( so because of that import android.support.v8 will also fail.

推荐答案

您不能将RenderScript图形API与支持库一起使用.您只能使用计算功能.

You cannot use the RenderScript graphics APIs with the support library. You can only use the compute functions.

这篇关于android.renderscript.renderscriptGL问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆