예제 #1
0
파일: lwf_core.cs 프로젝트: osdakira/lwf
 public void SetProgramObjectConstructor(int programObjectId,
                                         ProgramObjectConstructor programObjectConstructor)
 {
     if (programObjectId < 0 ||
         programObjectId >= m_data.programObjects.Length)
     {
         return;
     }
     m_programObjectConstructors[programObjectId] = programObjectConstructor;
 }
예제 #2
0
        public ProgramObject(LWF lwf, Movie parent, int objId)
            : base(lwf, parent, Format.Object.Type.PROGRAMOBJECT, objId)
        {
            Format.ProgramObject data = lwf.data.programObjects[objId];
            m_dataMatrixId = data.matrixId;
            ProgramObjectConstructor ctor = lwf.GetProgramObjectConstructor(objId);

            if (ctor != null)
            {
                m_renderer = ctor(this, objId, data.width, data.height);
            }
        }
예제 #3
0
파일: lwf_core.cs 프로젝트: osdakira/lwf
 public void SetProgramObjectConstructor(string programObjectName,
                                         ProgramObjectConstructor programObjectConstructor)
 {
     SetProgramObjectConstructor(
         SearchProgramObjectId(programObjectName), programObjectConstructor);
 }
예제 #4
0
파일: lwf_core.cs 프로젝트: rayyee/lwf
	public void SetProgramObjectConstructor(int programObjectId,
		ProgramObjectConstructor programObjectConstructor)
	{
		if (programObjectId < 0 ||
				programObjectId >= m_data.programObjects.Length)
			return;
		m_programObjectConstructors[programObjectId] = programObjectConstructor;
	}
예제 #5
0
파일: lwf_core.cs 프로젝트: rayyee/lwf
	public void SetProgramObjectConstructor(string programObjectName,
		ProgramObjectConstructor programObjectConstructor)
	{
		SetProgramObjectConstructor(
			SearchProgramObjectId(programObjectName), programObjectConstructor);
	}