pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

<legend id='oV2w9'><style id='oV2w9'><dir id='oV2w9'><q id='oV2w9'></q></dir></style></legend>
    • <bdo id='oV2w9'></bdo><ul id='oV2w9'></ul>

      <small id='oV2w9'></small><noframes id='oV2w9'>

      <i id='oV2w9'><tr id='oV2w9'><dt id='oV2w9'><q id='oV2w9'><span id='oV2w9'><b id='oV2w9'><form id='oV2w9'><ins id='oV2w9'></ins><ul id='oV2w9'></ul><sub id='oV2w9'></sub></form><legend id='oV2w9'></legend><bdo id='oV2w9'><pre id='oV2w9'><center id='oV2w9'></center></pre></bdo></b><th id='oV2w9'></th></span></q></dt></tr></i><div class="uag0i2w" id='oV2w9'><tfoot id='oV2w9'></tfoot><dl id='oV2w9'><fieldset id='oV2w9'></fieldset></dl></div>
    1. <tfoot id='oV2w9'></tfoot>
      1. 釋放由 GLKTextureLoader 分配的紋理(GLKTextureInfo 對(duì)象

        Release textures (GLKTextureInfo objects) allocated by GLKTextureLoader(釋放由 GLKTextureLoader 分配的紋理(GLKTextureInfo 對(duì)象))

              <bdo id='y5HZK'></bdo><ul id='y5HZK'></ul>

              <small id='y5HZK'></small><noframes id='y5HZK'>

            • <tfoot id='y5HZK'></tfoot>
                <i id='y5HZK'><tr id='y5HZK'><dt id='y5HZK'><q id='y5HZK'><span id='y5HZK'><b id='y5HZK'><form id='y5HZK'><ins id='y5HZK'></ins><ul id='y5HZK'></ul><sub id='y5HZK'></sub></form><legend id='y5HZK'></legend><bdo id='y5HZK'><pre id='y5HZK'><center id='y5HZK'></center></pre></bdo></b><th id='y5HZK'></th></span></q></dt></tr></i><div class="uu0ik2y" id='y5HZK'><tfoot id='y5HZK'></tfoot><dl id='y5HZK'><fieldset id='y5HZK'></fieldset></dl></div>
                    <tbody id='y5HZK'></tbody>

                  <legend id='y5HZK'><style id='y5HZK'><dir id='y5HZK'><q id='y5HZK'></q></dir></style></legend>
                  本文介紹了釋放由 GLKTextureLoader 分配的紋理(GLKTextureInfo 對(duì)象)的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  限時(shí)送ChatGPT賬號(hào)..

                  剛開(kāi)始在 iOS 上進(jìn)行開(kāi)發(fā),尤其是 iOS 5 上與 OpenGL 相關(guān)的新功能,所以如果我的任何問(wèn)題都非常基礎(chǔ),我深表歉意.

                  New to developing on iOS and in particular the new OpenGL related features on iOS 5, so I apologize if any of my questions are so basic.

                  我正在開(kāi)發(fā)的應(yīng)用程序旨在接收相機(jī)幀并通過(guò) OpenGL ES 在屏幕上顯示它們(圖形人員將接管它并添加我知之甚少的實(shí)際 OpenGL 繪圖).該應(yīng)用程序是 XCode4 開(kāi)發(fā)的,目標(biāo)是運(yùn)行 iOS 5 的 iPhone4.目前,我使用了 ARC 和 GLKit 功能,除了將圖像加載為紋理時(shí)出現(xiàn)內(nèi)存泄漏外,一切都運(yùn)行良好.該應(yīng)用很快就會(huì)收到內(nèi)存警告".

                  The app I am working on is designed to receive camera frames and display them on screen via OpenGL ES (the graphic folks will take over this and add the actual OpenGL drawing about which I know very little). The application is developed XCode4, and the target is iPhone4 running iOS 5. For the moment, I used the ARC and the GLKit functionality and all is working fine except for the memory leak in loading the images as texture. The app receives a "memory warning" very soon.

                  具體想問(wèn)一下怎么釋放分配的貼圖

                  Specifically, I would like to ask how to release the textures allocated by

                  @property(retain) GLKTextureInfo *texture;
                  
                  -(void)setTextureCGImage:(CGImageRef)image 
                  {
                      NSError *error;
                  
                      self.texture = [GLKTextureLoader textureWithCGImage:image options:nil error:&error];
                  
                      if (error) 
                      {
                          NSLog(@"Error loading texture from image: %@",error);
                      }
                  }
                  

                  image 是從相機(jī)框架構(gòu)建的石英圖像(來(lái)自蘋(píng)果的示例代碼).我知道問(wèn)題不在代碼的那部分,因?yàn)槿绻医梅峙洌瑧?yīng)用程序不會(huì)收到警告.

                  The image is a quartz image built from the camera frame (sample code from apple). I know the problem is not in that part of the code since if I disable the assignment, the app does not receive the warning.

                  推薦答案

                  我相信超級(jí) hacky 解決方案,但它似乎有效:

                  Super hacky solution I believe, but it seems to work:

                  在賦值前添加以下內(nèi)容:

                  Add the following before the assignment:

                  GLuint name = self.texture.name;
                  glDeleteTextures(1, &name);
                  

                  如果有更官方的方式(或者如果這是官方方式),如果有人可以告訴我,我將不勝感激.

                  If there's a more official way (or if this is the official way), I would appreciate if someone could let me know.

                  這篇關(guān)于釋放由 GLKTextureLoader 分配的紋理(GLKTextureInfo 對(duì)象)的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  How to animate a UIImageview to display fullscreen by tapping on it?(如何通過(guò)點(diǎn)擊動(dòng)畫(huà) UIImageview 以顯示全屏?)
                  To stop segue and show alert(停止 segue 并顯示警報(bào))
                  iOS 5 storyboard, programmatically determine path(iOS 5 故事板,以編程方式確定路徑)
                  Icon already includes gloss effects(圖標(biāo)已經(jīng)包含光澤效果)
                  How does UIEdgeInsetsMake work?(UIEdgeInsetsMake 是如何工作的?)
                  UIProgressView and Custom Track and Progress Images (iOS 5 properties)(UIProgressView 和自定義跟蹤和進(jìn)度圖像(iOS 5 屬性))

                    • <tfoot id='iu4U1'></tfoot>
                    • <i id='iu4U1'><tr id='iu4U1'><dt id='iu4U1'><q id='iu4U1'><span id='iu4U1'><b id='iu4U1'><form id='iu4U1'><ins id='iu4U1'></ins><ul id='iu4U1'></ul><sub id='iu4U1'></sub></form><legend id='iu4U1'></legend><bdo id='iu4U1'><pre id='iu4U1'><center id='iu4U1'></center></pre></bdo></b><th id='iu4U1'></th></span></q></dt></tr></i><div class="sqoq2ui" id='iu4U1'><tfoot id='iu4U1'></tfoot><dl id='iu4U1'><fieldset id='iu4U1'></fieldset></dl></div>
                          <tbody id='iu4U1'></tbody>
                          <bdo id='iu4U1'></bdo><ul id='iu4U1'></ul>
                          <legend id='iu4U1'><style id='iu4U1'><dir id='iu4U1'><q id='iu4U1'></q></dir></style></legend>

                            <small id='iu4U1'></small><noframes id='iu4U1'>

                            主站蜘蛛池模板: 民用音响-拉杆音响-家用音响-ktv专用音响-万昌科技 | 合肥汽车充电桩_安徽充电桩_电动交流充电桩厂家_安徽科帝新能源科技有限公司 | 挤奶设备过滤纸,牛奶过滤纸,挤奶机过滤袋-济南蓝贝尔工贸有限公司 | 蜘蛛车-登高车-高空作业平台-高空作业车-曲臂剪叉式升降机租赁-重庆海克斯公司 | 青岛侦探_青岛侦探事务所_青岛劝退小三_青岛调查出轨取证公司_青岛婚外情取证-青岛探真调查事务所 | 深圳激光打标机_激光打标机_激光焊接机_激光切割机_同体激光打标机-深圳市创想激光科技有限公司 深圳快餐店设计-餐饮设计公司-餐饮空间品牌全案设计-深圳市勤蜂装饰工程 | 板框压滤机-隔膜压滤机配件生产厂家-陕西华星佳洋装备制造有限公司 | 吉祥新世纪铝塑板_生产铝塑板厂家_铝塑板生产厂家_临沂市兴达铝塑装饰材料有限公司 | 广州中央空调回收,二手中央空调回收,旧空调回收,制冷设备回收,冷气机组回收公司-广州益夫制冷设备回收公司 | 高通量组织研磨仪-多样品组织研磨仪-全自动组织研磨仪-研磨者科技(广州)有限公司 | 阻垢剂-反渗透缓蚀阻垢剂厂家-山东鲁东环保科技有限公司 | 净化车间_洁净厂房_净化公司_净化厂房_无尘室工程_洁净工程装修|改造|施工-深圳净化公司 | 10吨无线拉力计-2吨拉力计价格-上海佳宜电子科技有限公司 | 消泡剂_水处理消泡剂_切削液消泡剂_涂料消泡剂_有机硅消泡剂_广州中万新材料生产厂家 | 计算机毕业设计源码网| 路斯特伺服驱动器维修,伦茨伺服驱动器维修|万骏自动化百科 | 天津热油泵_管道泵_天津高温热油泵-天津市金丰泰机械泵业有限公司【官方网站】 | 河南空气能热水器-洛阳空气能采暖-洛阳太阳能热水工程-洛阳润达高科空气能商行 | 成都网站建设制作_高端网站设计公司「做网站送优化推广」 | 土壤养分检测仪|土壤水分|土壤紧实度测定仪|土壤墒情监测系统-土壤仪器网 | 微学堂-电动能源汽车评测_电动车性能分享网 | 进口试验机价格-进口生物材料试验机-西安卡夫曼测控技术有限公司 | 液压压力机,液压折弯机,液压剪板机,模锻液压机-鲁南新力机床有限公司 | 空压机网_《压缩机》杂志 | 驾驶式洗地机/扫地机_全自动洗地机_工业洗地机_荣事达工厂官网 | 巨野电机维修-水泵维修-巨野县飞宇机电维修有限公司 | 布袋除尘器-单机除尘器-脉冲除尘器-泊头市兴天环保设备有限公司 布袋除尘器|除尘器设备|除尘布袋|除尘设备_诺和环保设备 | IWIS链条代理-ALPS耦合透镜-硅烷预处理剂-上海顶楚电子有限公司 lcd条形屏-液晶长条屏-户外广告屏-条形智能显示屏-深圳市条形智能电子有限公司 | 天然气分析仪-液化气二甲醚分析仪|传昊仪器 | 洁净化验室净化工程_成都实验室装修设计施工_四川华锐净化公司 | 手板_手板模型制作_cnc手板加工厂-东莞天泓 | 粘度计维修,在线粘度计,二手博勒飞粘度计维修|收购-天津市祥睿科技有限公司 | 篮球地板厂家_舞台木地板品牌_体育运动地板厂家_凯洁地板 | AGV无人叉车_激光叉车AGV_仓储AGV小车_AGV无人搬运车-南昌IKV机器人有限公司[官网] | 冰晶石|碱性嫩黄闪蒸干燥机-有机垃圾烘干设备-草酸钙盘式干燥机-常州市宝康干燥 | 冷却塔厂家_冷却塔维修_冷却塔改造_凉水塔配件填料公司- 广东康明节能空调有限公司 | 刺绳_刀片刺网_刺丝滚笼_不锈钢刺绳生产厂家_安平县浩荣金属丝网制品有限公司-安平县浩荣金属丝网制品有限公司 | 馋嘴餐饮网_餐饮加盟店火爆好项目_餐饮连锁品牌加盟指南创业平台 | 食品质构分析仪-氧化诱导分析仪-瞬态法导热系数仪|热冰百科 | 食品无尘净化车间,食品罐装净化车间,净化车间配套风淋室-青岛旭恒洁净技术有限公司 | 杭州网络公司_百度SEO优化-外贸网络推广_抖音小程序开发-杭州乐软科技有限公司 |